btrfs-progs: lowmem check: Output more detailed information about file extent interrupt
authorLu Fengqi <lufq.fnst@cn.fujitsu.com>
Fri, 3 Nov 2017 08:28:04 +0000 (16:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Nov 2017 14:59:01 +0000 (15:59 +0100)
Make lowmem mode output more detailed information about file extent
interrupt.

Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-check.c

index a6198ba..5750bb7 100644 (file)
@@ -5867,8 +5867,9 @@ static int check_file_extent(struct btrfs_root *root, struct btrfs_key *fkey,
                                                *end, fkey->offset - *end);
                if (!repair || ret) {
                        err |= FILE_EXTENT_ERROR;
-                       error("root %llu EXTENT_DATA[%llu %llu] interrupt",
-                             root->objectid, fkey->objectid, fkey->offset);
+                       error(
+               "root %llu EXTENT_DATA[%llu %llu] interrupt, should start at %llu",
+                       root->objectid, fkey->objectid, fkey->offset, *end);
                }
        }