diff options
author | Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com> | 2012-01-13 00:58:39 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-01-31 14:37:33 -0500 |
commit | 021000e59c0db2d3a8113e906bde3183c33fa84b (patch) | |
tree | dda591a89ef4d3fbf71983e491c65a6b6525920a /fs/xfs/xfs_mount.c | |
parent | 4505360376637832f79f84f352588b0a045ad113 (diff) |
xfs: show uuid when mount fails due to duplicate uuid
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 <mitsuo.hayasaka.hu@hitachi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Ben Myers <bpm@sgi.com>
Cc: Alex Elder <elder@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_mount.c')
-rw-r--r-- | fs/xfs/xfs_mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index d06afbc3540d..e07f8528c5ef 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -158,7 +158,7 @@ xfs_uuid_mount( | |||
158 | 158 | ||
159 | out_duplicate: | 159 | out_duplicate: |
160 | mutex_unlock(&xfs_uuid_table_mutex); | 160 | mutex_unlock(&xfs_uuid_table_mutex); |
161 | xfs_warn(mp, "Filesystem has duplicate UUID - can't mount"); | 161 | xfs_warn(mp, "Filesystem has duplicate UUID %pU - can't mount", uuid); |
162 | return XFS_ERROR(EINVAL); | 162 | return XFS_ERROR(EINVAL); |
163 | } | 163 | } |
164 | 164 | ||