]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.suse/ocfs2-Add-xattr-mount-option-in-ocfs2_show_options.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.suse / ocfs2-Add-xattr-mount-option-in-ocfs2_show_options.patch
CommitLineData
2cb7cef9
BS
1From: Sunil Mushran <sunil.mushran@oracle.com>
2Subject: ocfs2: Add xattr mount option in ocfs2_show_options()
3Patch-mainline: 2.6.28?
4References: FATE302067
5
6Patch adds check for [no]user_xattr in ocfs2_show_options() that completes
7the list of all mount options.
8
9Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
10Signed-off-by: Mark Fasheh <mfasheh@suse.com>
11---
12 fs/ocfs2/super.c | 5 +++++
13 1 files changed, 5 insertions(+), 0 deletions(-)
14
15diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
16index 2173169..d789c53 100644
17--- a/fs/ocfs2/super.c
18+++ b/fs/ocfs2/super.c
19@@ -991,6 +991,11 @@ static int ocfs2_show_options(struct seq_file *s, struct vfsmount *mnt)
20 seq_printf(s, ",cluster_stack=%.*s", OCFS2_STACK_LABEL_LEN,
21 osb->osb_cluster_stack);
22
23+ if (opts & OCFS2_MOUNT_NOUSERXATTR)
24+ seq_printf(s, ",nouser_xattr");
25+ else
26+ seq_printf(s, ",user_xattr");
27+
28 return 0;
29 }
30
31--
321.5.4.5
33