<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    generic/204 fails on device with <span id="mainframespan">Advanced
      Format of 4096 bytes per <br>
      physical sector and when partition </span><span
      id="mainframespan"><span id="mainframespan"> starts at the 4K
        boundary<tt><i>.</i></tt>In this case <br>
      </span>filesystem </span><span id="mainframespan"><span
        id="mainframespan">sector/block size</span> will be of 4096
      bytes size and _scratch_mkfs_sized<br>
      fails because mkfs reports that 5Mb log size is not enough to
      create a filesystem, <br>
      for example attempt to make filesystem on such partition:  <br>
      <br>
      mkfs.xfs -f -bsize=4096 -l size=5m -d size=109051904 /dev/sdb2"<br>
      <br>
    </span><span id="mainframespan"><span id="mainframespan">results to</span>:<br>
      <br>
      "log size 1280 blocks too small, minimum size is 1605 blocks"<br>
      <br>
      and generic/204</span><font face="sans-serif"> fails with
      ENOSPC before it has finished creating the necessary files:<br>
      <br>
      "QA output created by 204<br>
      ./tests/generic/204: line 86: echo: write error: No space left on
      device<br>
      ..."<br>
      <br>
      Log size of 7Mb</font><font face="sans-serif"> is enough to make
      filesytem </font><font face="sans-serif">and pass this test.<br>
      <br>
      diff --git a/tests/generic/204 b/tests/generic/204<br>
      index 13a762a..4ebab26 100755<br>
      --- a/tests/generic/204<br>
      +++ b/tests/generic/204<br>
      @@ -53,9 +53,9 @@ _scratch_mkfs 2> /dev/null | _filter_mkfs
      2> $tmp.mkfs > /dev/null<br>
      <br>
       # For xfs, we need to handle the different default log sizes that
      different<br>
       # versions of mkfs create. All should be valid with a 5MB log, so
      use that.<br>
      -[ $FSTYP = "xfs" ] && MKFS_OPTIONS="$MKFS_OPTIONS -l
      size=5m"<br>
      +[ $FSTYP = "xfs" ] && MKFS_OPTIONS="$MKFS_OPTIONS -l
      size=7m"<br>
      <br>
      -SIZE=`expr 104 \* 1024 \* 1024`<br>
      +SIZE=`expr 106 \* 1024 \* 1024`<br>
       _scratch_mkfs_sized $SIZE $dbsize 2> /dev/null \<br>
                      | _filter_mkfs 2> $tmp.mkfs > /dev/null<br>
       _scratch_mount<br>
    </font>
  </body>
</html>