Re: [PATCH] ovl: Select EXPORTFS for exportfs_{en,de}code_fh

2017-05-13 Thread Amir Goldstein
On Sat, May 13, 2017 at 5:17 AM, Florian Fainelli  wrote:
> fs/overlayfs/namei.c now calls exportfs_decode_fh() and
> fs/overlayfs/copy_up.c calls exportfs_encode_fh() but misses an EXPORTFS
> select which results in the following build error:
>

Arnd has already sent that patch 2 days ago, but Thanks!


Re: [PATCH] ovl: Select EXPORTFS for exportfs_{en,de}code_fh

2017-05-13 Thread Amir Goldstein
On Sat, May 13, 2017 at 5:17 AM, Florian Fainelli  wrote:
> fs/overlayfs/namei.c now calls exportfs_decode_fh() and
> fs/overlayfs/copy_up.c calls exportfs_encode_fh() but misses an EXPORTFS
> select which results in the following build error:
>

Arnd has already sent that patch 2 days ago, but Thanks!


[PATCH] ovl: Select EXPORTFS for exportfs_{en,de}code_fh

2017-05-12 Thread Florian Fainelli
fs/overlayfs/namei.c now calls exportfs_decode_fh() and
fs/overlayfs/copy_up.c calls exportfs_encode_fh() but misses an EXPORTFS
select which results in the following build error:

fs/built-in.o: In function `ovl_get_origin':
/home/florian/dev/linux/fs/overlayfs/namei.c:141: undefined reference to
`exportfs_decode_fh'
fs/built-in.o: In function `ovl_encode_fh':
/home/florian/dev/linux/fs/overlayfs/copy_up.c:253: undefined reference
to `exportfs_encode_fh'
Makefile:997: recipe for target 'vmlinux' failed

Fixes: a9d019573e88 ("ovl: lookup non-dir copy-up-origin by file handle")
Fixes: 3a1e819b4e80 ("ovl: store file handle of lower inode on copy up")
Signed-off-by: Florian Fainelli 
---
 fs/overlayfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/overlayfs/Kconfig b/fs/overlayfs/Kconfig
index 0daac5112f7a..c0c9683934b7 100644
--- a/fs/overlayfs/Kconfig
+++ b/fs/overlayfs/Kconfig
@@ -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.11.0



[PATCH] ovl: Select EXPORTFS for exportfs_{en,de}code_fh

2017-05-12 Thread Florian Fainelli
fs/overlayfs/namei.c now calls exportfs_decode_fh() and
fs/overlayfs/copy_up.c calls exportfs_encode_fh() but misses an EXPORTFS
select which results in the following build error:

fs/built-in.o: In function `ovl_get_origin':
/home/florian/dev/linux/fs/overlayfs/namei.c:141: undefined reference to
`exportfs_decode_fh'
fs/built-in.o: In function `ovl_encode_fh':
/home/florian/dev/linux/fs/overlayfs/copy_up.c:253: undefined reference
to `exportfs_encode_fh'
Makefile:997: recipe for target 'vmlinux' failed

Fixes: a9d019573e88 ("ovl: lookup non-dir copy-up-origin by file handle")
Fixes: 3a1e819b4e80 ("ovl: store file handle of lower inode on copy up")
Signed-off-by: Florian Fainelli 
---
 fs/overlayfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/overlayfs/Kconfig b/fs/overlayfs/Kconfig
index 0daac5112f7a..c0c9683934b7 100644
--- a/fs/overlayfs/Kconfig
+++ b/fs/overlayfs/Kconfig
@@ -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.11.0