projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4505360
)
xfs: show uuid when mount fails due to duplicate uuid
author
Mitsuo Hayasaka
<
[email protected]
>
Fri, 13 Jan 2012 05:58:39 +0000
(
05:58
+0000)
committer
Ben Myers
<
[email protected]
>
Tue, 31 Jan 2012 19:37:33 +0000
(13:37 -0600)
When a system tries to mount a filesystem (FS) using UUID, the xfs
returns -EINVAL and shows a message if a FS with the same UUID has
been already mounted. It is useful to output the duplicate UUID
with it.
Signed-off-by: Mitsuo Hayasaka <
[email protected]
>
Reviewed-by: Christoph Hellwig <
[email protected]
>
Cc: Ben Myers <
[email protected]
>
Cc: Alex Elder <
[email protected]
>
Cc: Christoph Hellwig <
[email protected]
>
Signed-off-by: Ben Myers <
[email protected]
>
fs/xfs/xfs_mount.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_mount.c
b/fs/xfs/xfs_mount.c
index d06afbc3540dde90d7796139bf658c8439a83d4c..e07f8528c5ef972a463931a5650838e99160e85a 100644
(file)
--- a/
fs/xfs/xfs_mount.c
+++ b/
fs/xfs/xfs_mount.c
@@
-158,7
+158,7
@@
xfs_uuid_mount(
out_duplicate:
mutex_unlock(&xfs_uuid_table_mutex);
- xfs_warn(mp, "Filesystem has duplicate UUID
- can't mount"
);
+ xfs_warn(mp, "Filesystem has duplicate UUID
%pU - can't mount", uuid
);
return XFS_ERROR(EINVAL);
}