Skip to contentSkip to conversation

overlay: show "userxattr" in the mount data

PATCH Applied Giuseppe Scrivano 3 participants 3 messages Mar 4, 2021 – Apr 9, 2021 Overlay filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 overlay: show "userxattr" in the mount data

---
 fs/overlayfs/super.c | 2 ++
 1 file changed, 2 insertions(+)
fs/overlayfs/super.c +2 -0
index fdd72f1a9c5e..d16120d63240 100644
@@ -380,6 +380,8 @@ static int ovl_show_options(struct seq_file *m, struct dentry *dentry)
 			   ofs->config.metacopy ? "on" : "off");
 	if (ofs->config.ovl_volatile)
 		seq_puts(m, ",volatile");
+	if (ofs->config.userxattr)
+		seq_puts(m, ",userxattr");
 	return 0;
 }
 
Signature · 1 line
2.29.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Giuseppe Scrivano

Minor nit: I am not sure if subject only patch is allowed. I would expect
couple of lines in patch description too.

Otherwise looks good to me.

Vivek

Quoted 20 lines
---
 fs/overlayfs/super.c | 2 ++
 1 file changed, 2 insertions(+)
fs/overlayfs/super.c +2 -0
index fdd72f1a9c5e..d16120d63240 100644
@@ -380,6 +380,8 @@ static int ovl_show_options(struct seq_file *m, struct dentry *dentry)
 			   ofs->config.metacopy ? "on" : "off");
 	if (ofs->config.ovl_volatile)
 		seq_puts(m, ",volatile");
+	if (ofs->config.userxattr)
+		seq_puts(m, ",userxattr");
 	return 0;
 }
 
Signature · 1 line
2.29.2