btrfsprogs/btrfsck-ignore-option-a.diff
2011-10-04 00:31:38 +00:00

16 lines
394 B
Diff

--- a/btrfsck.c.new 2011-10-04 02:05:51.891833030 +0200
+++ b/btrfsck.c 2011-10-04 02:07:51.999653799 +0200
@@ -2816,10 +2816,11 @@ int main(int ac, char **av)
while(1) {
int c;
- c = getopt(ac, av, "s:");
+ c = getopt(ac, av, "as:");
if (c < 0)
break;
switch(c) {
+ case 'a': /* ignored */ break;
case 's':
num = atol(optarg);
bytenr = btrfs_sb_offset(num);