summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2011-10-12 13:36:13 +0200
committerDavid Sterba <dsterba@suse.cz>2013-01-17 18:34:40 +0100
commit6cd836d7d95ae61edfca2406f48eeca47b8cfd81 (patch)
tree10e0bb91800f8b36c4c0ff9f811e907d1d5c1b14
parent4bd93ea68c52944589a154743f37f546168902fe (diff)
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>
-rw-r--r--btrfsck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/btrfsck.c b/btrfsck.c
index 67f4a9dd..a8510085 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -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);