linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bindfs over NFS shows the underlying file system
@ 2019-10-11  5:24 Alkis Georgopoulos
  2019-10-11 16:47 ` J. Bruce Fields
  0 siblings, 1 reply; 3+ messages in thread
From: Alkis Georgopoulos @ 2019-10-11  5:24 UTC (permalink / raw)
  To: linux-nfs

I'm not sure if this is an NFS issue, or a bindfs issue, or if I'm not 
using the appropriate NFS options.

I export my /home via NFS with:

     /home *(rw,async,crossmnt,no_subtree_check,no_root_squash,insecure)

Inside my /home I'm providing a shared folder with a bindfs mount:

     bindfs -u 1000 --create-for-user=1000 -g 100 --create-for-group=100 
-p 770,af-x /home/share /home/share

I.e. this just sets fixed permissions for anything under /home/share.

And finally I mount /home on some NFS client (or on localhost):

     mount -t nfs server:/home /home

The problem is that /home/share on the client doesn't show the bindfs 
permissions, but it shows the underlying file system of the server's 
/home/share.
The crossmnt NFS option follows submounts with other file systems, but 
not with bindfs.

On the other hand, if the bindfs source is on a different file system 
than the bindfs target directory, everything works fine (i.e. bindfs 
/other/filesystem/share /home/share).

Is there any way to configure either NFS or bindfs, so that this works 
when I only have one partition, i.e. when the share is on the same file 
system as /home?

If anyone answers, please Cc me as I'm not in the list.

Thank you very much,
Alkis Georgopoulos
LTSP developer

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-12  5:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-11  5:24 bindfs over NFS shows the underlying file system Alkis Georgopoulos
2019-10-11 16:47 ` J. Bruce Fields
2019-10-12  5:03   ` Alkis Georgopoulos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).