diff options
author | Nikolay Edigaryev <edigaryev@gmail.com> | 2024-04-25 17:48:52 +0400 |
---|---|---|
committer | Nikolay Edigaryev <edigaryev@gmail.com> | 2024-04-25 17:50:08 +0400 |
commit | e74d6cbd31322dc2771bdb5b116c8dbafb41c242 (patch) | |
tree | 0edf6de348ce1ecf8cef3bb1960bfa511d4e61d9 | |
parent | ec2d118738facd1456a25bb67015e67094010b99 (diff) |
migrate: improve "does not have correct st_dev" error message
Better explain which st_dev value was expected and which was
found and give a hint to why this mismatch might have occurred.
-rw-r--r-- | c_src/cmd_migrate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c_src/cmd_migrate.c b/c_src/cmd_migrate.c index 5ac326dd..534b06e3 100644 --- a/c_src/cmd_migrate.c +++ b/c_src/cmd_migrate.c @@ -451,7 +451,8 @@ static void copy_dir(struct copy_fs_state *s, char *child_path = mprintf("%s/%s", src_path, d->d_name); if (stat.st_dev != s->dev) - die("%s does not have correct st_dev!", child_path); + die("%s does not have correct st_dev: expected %d, but got %d, " + "does it reside on separate filesystem?", child_path, s->dev, stat.st_dev); u64 *dst_inum = S_ISREG(stat.st_mode) ? genradix_ptr_alloc(&s->hardlinks, stat.st_ino, GFP_KERNEL) |