Skip to contentSkip to conversation

ovl: select EXPORTFS

PATCH Applied Arnd Bergmann 2 participants 2 messages May 11, 2017 – May 15, 2017 Overlay filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ovl: select EXPORTFS

We get a link error when EXPORTFS is not enabled:

ERROR: "exportfs_encode_fh" [fs/overlayfs/overlay.ko] undefined!
ERROR: "exportfs_decode_fh" [fs/overlayfs/overlay.ko] undefined!

This adds a Kconfig 'select' statement for overlayfs, the same way that it is done for the other users of exportfs.

Fixes 3a1e819b4e80 ("ovl: store file handle of lower inode on copy up")
---
 fs/overlayfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/overlayfs/Kconfig +1 -0
index 0daac5112f7a..c0c9683934b7 100644
@@ -1,5 +1,6 @@
 config OVERLAY_FS
 	tristate "Overlay filesystem support"
+	select EXPORTFS
 	help
 	  An overlay filesystem combines two filesystems - an 'upper' filesystem
 	  and a 'lower' filesystem.  When a name exists in both filesystems, the
Signature · 1 line
2.9.0
maintainer Applied
#1 lore raw
Quoted 10 lines · Arnd Bergmann

We get a link error when EXPORTFS is not enabled:

ERROR: "exportfs_encode_fh" [fs/overlayfs/overlay.ko] undefined!
ERROR: "exportfs_decode_fh" [fs/overlayfs/overlay.ko] undefined!

This adds a Kconfig 'select' statement for overlayfs, the same way that it is done for the other users of exportfs.

Fixes 3a1e819b4e80 ("ovl: store file handle of lower inode on copy up")

Thanks, applied.

Miklos

Quoted 18 lines
---
 fs/overlayfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/overlayfs/Kconfig +1 -1
index 0daac5112f7a..c0c9683934b7 100644
@@ -1,5 +1,6 @@
 config OVERLAY_FS
        tristate "Overlay filesystem support"
+       select EXPORTFS
        help
          An overlay filesystem combines two filesystems - an 'upper' filesystem
          and a 'lower' filesystem.  When a name exists in both filesystems, the
--

2.9.0