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:
parent
4bd93ea68c
commit
6cd836d7d9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue