Re: [PATCH] Btrfs-progs: setup framework to corrupt specific fields of an inode V2

2013-09-09 Thread David Sterba
On Fri, Sep 06, 2013 at 09:26:19AM -0400, Josef Bacik wrote: @@ -93,6 +95,9 @@ static void print_usage(void) fprintf(stderr, \t-b Number of bytes to be corrupted\n); fprintf(stderr, \t-e Extent to be corrupted\n); fprintf(stderr, \t-E The whole extent free to be corrupted\n);

[PATCH] Btrfs-progs: setup framework to corrupt specific fields of an inode V2

2013-09-06 Thread Josef Bacik
A user reported a problem with his fs where he had a bogus isize on his directory. In order to make sure my patch for fsck fixes this properly I needed to be able to corrupt an inode like this, which is what this patch is for. Eventually I want to extend this to corrupt everything so we can