home | list info | list archive | date index | thread index

Re: how to have a local directory somewhere under an NFS mount?

  • Subject: Re: how to have a local directory somewhere under an NFS mount?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Tue, 23 Mar 2021 12:21:23 -0400 (EDT)
On Tue, 23 Mar 2021, Christopher Harvey wrote:

> hm interesting question. I tried locally out of curiosity and it seems to work.
>
> /mnt/chris is NFS
>
> # sudo mount --bind /home/chris/test-files/ /mnt/chris/tmp/
>
> # mount | grep chris
> //172.24.1.10/chris on /mnt/chris type cifs
> /dev/nvme0n1p4 on /mnt/chris/tmp type ext4
>
> # cd /mnt/chris/tmp/
> now shows the local files.
>
> Unsure how permissions/gid/uid would work in this case though. Do
> you get the CIFS-enforced ones or the mounted directory ones? Mine
> matched before the mount.

  cool, thanks for checking. i'll mention this to my friend, even
though i'm still going to recommend restructuring his scripts to not
depend on hard-coded paths to data directories below the NFS mount
point.

rday

To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org