btrfs-progs: ignore -a option in mkfs

Let mkfs accept '-a' option and not complain.  When a partition has non-zero
value in the fs_passno filed in /etc/fstab, the fsck is run but fails and boot
stops. As fsck does not break things currently, it's safe to ignore the option
and let the boot proceed.

Reference: https://bugzilla.novell.com/show_bug.cgi?id=655906

Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
David Sterba 2011-10-12 13:36:13 +02:00
parent 4bd93ea68c
commit 6cd836d7d9
1 changed files with 2 additions and 1 deletions

View File

@ -3501,11 +3501,12 @@ int main(int ac, char **av)
while(1) {
int c;
c = getopt_long(ac, av, "s:", long_options,
c = getopt_long(ac, av, "as:", long_options,
&option_index);
if (c < 0)
break;
switch(c) {
case 'a': /* ignored */ break;
case 's':
num = atol(optarg);
bytenr = btrfs_sb_offset(num);