From: Wengang Wang <wen.gang.wang@oracle.com>
To: "Kinzel, David" <David.Kinzel@encana.com>
Cc: xfs@oss.sgi.com, joe.jin@oracle.com, greg.marsden@oracle.com,
Wengang Wang <wen.gang.wang@oracle.com>
Subject: Re: different error messages for mkfs.xfs -ssize
Date: Fri, 23 Apr 2010 10:48:25 +0800 [thread overview]
Message-ID: <20100423024825.GA2949@laptop.oracle.com> (raw)
In-Reply-To: <F57F2AD357626644AF76410876025D751277F5@CGYEX705.encana.com>
On 10-04-22 10:18, Kinzel, David wrote:
> >-----Original Message-----
> >From: xfs-bounces@oss.sgi.com [mailto:xfs-bounces@oss.sgi.com]
> >On Behalf Of Wengang Wang
> >Sent: Thursday, April 22, 2010 9:37 AM
> >To: xfs@oss.sgi.com
> >Cc: greg.marsden@oracle.com; joe.jin@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)
Yes. That are the places where different error messges are printed.
I meant If there is no more info for a message than the other, It's
better that the messages are the same.
Thanks a lot!
regards,
wengang.
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-04-23 2:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-22 15:36 different error messages for mkfs.xfs -ssize Wengang Wang
2010-04-22 16:18 ` Kinzel, David
2010-04-23 2:48 ` Wengang Wang [this message]
2010-04-22 16:46 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100423024825.GA2949@laptop.oracle.com \
--to=wen.gang.wang@oracle.com \
--cc=David.Kinzel@encana.com \
--cc=greg.marsden@oracle.com \
--cc=joe.jin@oracle.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.