>-----Original Message-----
>From: xfs-bounces@xxxxxxxxxxx [mailto:xfs-bounces@xxxxxxxxxxx]
>On Behalf Of Wengang Wang
>Sent: Thursday, April 22, 2010 9:37 AM
>To: xfs@xxxxxxxxxxx
>Cc: greg.marsden@xxxxxxxxxx; joe.jin@xxxxxxxxxx
>Subject: different error messages for mkfs.xfs -ssize
>
>Hi experts,
>
>I got different error messages when provide different value for -ssize.
>Why the error messages are different? They are different but no one is
>containing more info than the other.
1639 if (sectorsize < XFS_MIN_SECTORSIZE ||
1640 sectorsize > XFS_MAX_SECTORSIZE || sectorsize >
blocksize) {
1641 fprintf(stderr, _("illegal sector size %d\n"),
sectorsize);
1642 usage();
1643 }
According to the defaults:
62 #define XFS_MIN_SECTORSIZE_LOG 9 /* i.e. 512 bytes */
64 #define XFS_MIN_SECTORSIZE (1 << XFS_MIN_SECTORSIZE_LOG)
Looks like your sectorsize is not greater than XFS_MIN_SECTORSIZE
(illegal sector size)
For 3072,
1561 if (sectorsize <= 0 ||
1562 !ispow2(sectorsize))
1563 illegal(value, "s
sectsize");
3072 is not a power of two (illegal value)
>
>[root@desk test-xfsprogs]# mkfs.xfs -ssize=256 /dev/sda10 -f
>2>&1 |head -n 1
>illegal sector size 256
>[root@desk test-xfsprogs]# mkfs.xfs -ssize=3072 /dev/sda10 -f
>2>&1 |head -n 1
>Illegal value 3072 for -s sectsize option
>
>regards,
>wengang.
>
>_______________________________________________
>xfs mailing list
>xfs@xxxxxxxxxxx
>http://oss.sgi.com/mailman/listinfo/xfs
>
This email communication and any files transmitted with it may contain
confidential and or proprietary information and is provided for the use of the
intended recipient only. Any review, retransmission or dissemination of this
information by anyone other than the intended recipient is prohibited. If you
receive this email in error, please contact the sender and delete this
communication and any copies immediately. Thank you.
http://www.encana.com
|