Re: [PATCH v3.1 1/3] btrfs-progs: factor out super_block reading from load_and_dump_sb

2019-05-16 Thread Johannes Thumshirn
On Tue, May 14, 2019 at 03:58:04PM +0200, Johannes Thumshirn wrote: > inspect-internal dump-superblock's load_and_dump_sb() already reads a > super block from a file descriptor and places it into a 'struct > btrfs_super_block'. > > For inspect-internal dump-csum we need this super block as well bu

Re: [PATCH v3.1 1/3] btrfs-progs: factor out super_block reading from load_and_dump_sb

2019-05-14 Thread Nikolay Borisov
On 14.05.19 г. 16:58 ч., Johannes Thumshirn wrote: > inspect-internal dump-superblock's load_and_dump_sb() already reads a > super block from a file descriptor and places it into a 'struct > btrfs_super_block'. > > For inspect-internal dump-csum we need this super block as well but don't > care

[PATCH v3.1 1/3] btrfs-progs: factor out super_block reading from load_and_dump_sb

2019-05-14 Thread Johannes Thumshirn
inspect-internal dump-superblock's load_and_dump_sb() already reads a super block from a file descriptor and places it into a 'struct btrfs_super_block'. For inspect-internal dump-csum we need this super block as well but don't care about printing it. Separate the read from the dump phase so we c