diff options
| author | Joel Becker <jlbec@evilplan.org> | 2011-03-28 12:44:26 -0400 |
|---|---|---|
| committer | Joel Becker <jlbec@evilplan.org> | 2011-03-28 12:44:26 -0400 |
| commit | 99bdc3880c611c7f2061fbd5372ef81b40217e26 (patch) | |
| tree | ef68a53e28e9ee53ce9db3642bab5fa5b3d44866 /fs/namespace.c | |
| parent | ed59992e8d91b70053c53d846a76f7e1ac000454 (diff) | |
| parent | b4e1b7e88b2c87c358c2a88bec0c76d25accc604 (diff) | |
Merge branch 'mlog_replace_for_39' of git://repo.or.cz/taoma-kernel into ocfs2-merge-window-fix
Diffstat (limited to 'fs/namespace.c')
| -rw-r--r-- | fs/namespace.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 7b0b95371696..dffe6f49ab93 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
| @@ -1002,6 +1002,18 @@ const struct seq_operations mounts_op = { | |||
| 1002 | .show = show_vfsmnt | 1002 | .show = show_vfsmnt |
| 1003 | }; | 1003 | }; |
| 1004 | 1004 | ||
| 1005 | static int uuid_is_nil(u8 *uuid) | ||
| 1006 | { | ||
| 1007 | int i; | ||
| 1008 | u8 *cp = (u8 *)uuid; | ||
| 1009 | |||
| 1010 | for (i = 0; i < 16; i++) { | ||
| 1011 | if (*cp++) | ||
| 1012 | return 0; | ||
| 1013 | } | ||
| 1014 | return 1; | ||
| 1015 | } | ||
| 1016 | |||
| 1005 | static int show_mountinfo(struct seq_file *m, void *v) | 1017 | static int show_mountinfo(struct seq_file *m, void *v) |
| 1006 | { | 1018 | { |
| 1007 | struct proc_mounts *p = m->private; | 1019 | struct proc_mounts *p = m->private; |
| @@ -1040,6 +1052,10 @@ static int show_mountinfo(struct seq_file *m, void *v) | |||
| 1040 | if (IS_MNT_UNBINDABLE(mnt)) | 1052 | if (IS_MNT_UNBINDABLE(mnt)) |
| 1041 | seq_puts(m, " unbindable"); | 1053 | seq_puts(m, " unbindable"); |
| 1042 | 1054 | ||
| 1055 | if (!uuid_is_nil(mnt->mnt_sb->s_uuid)) | ||
| 1056 | /* print the uuid */ | ||
| 1057 | seq_printf(m, " uuid:%pU", mnt->mnt_sb->s_uuid); | ||
| 1058 | |||
| 1043 | /* Filesystem specific data */ | 1059 | /* Filesystem specific data */ |
| 1044 | seq_puts(m, " - "); | 1060 | seq_puts(m, " - "); |
| 1045 | show_type(m, sb); | 1061 | show_type(m, sb); |
| @@ -1244,7 +1260,7 @@ static int do_umount(struct vfsmount *mnt, int flags) | |||
| 1244 | */ | 1260 | */ |
| 1245 | br_write_lock(vfsmount_lock); | 1261 | br_write_lock(vfsmount_lock); |
| 1246 | if (mnt_get_count(mnt) != 2) { | 1262 | if (mnt_get_count(mnt) != 2) { |
| 1247 | br_write_lock(vfsmount_lock); | 1263 | br_write_unlock(vfsmount_lock); |
| 1248 | return -EBUSY; | 1264 | return -EBUSY; |
| 1249 | } | 1265 | } |
| 1250 | br_write_unlock(vfsmount_lock); | 1266 | br_write_unlock(vfsmount_lock); |
