different error messages for mkfs.xfs -ssize

Kinzel, David David.Kinzel at encana.com
Thu Apr 22 11:18:39 CDT 2010


>-----Original Message-----
>From: xfs-bounces at oss.sgi.com [mailto:xfs-bounces at oss.sgi.com] 
>On Behalf Of Wengang Wang
>Sent: Thursday, April 22, 2010 9:37 AM
>To: xfs at oss.sgi.com
>Cc: greg.marsden at oracle.com; joe.jin at oracle.com
>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 at desk test-xfsprogs]# mkfs.xfs -ssize=256 /dev/sda10 -f 
>2>&1 |head -n 1
>illegal sector size 256
>[root at 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 at oss.sgi.com
>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






More information about the xfs mailing list