Re: mount dir over another dir
NFS did the trick. Although this made me to apply some unusual pf rules to make portmapper work pass in inet proto { tcp udp } from self to self port { 111 2049 } pass out inet proto { tcp udp } from self to self port { 111 2049 } without it nfsd[70598]: can't register with udp portmap Thank you. чт, 16 апр. 2020 г. в 16:16, Adam Thompson : > On 2020-04-16 02:13, Ono Caritofilaxy wrote: > > Hello. > > > > I want to mount /usr/local/srcdir /usr/local/dstdir/subdir > > > > answer was "no" 3 years ago > > https://marc.info/?l=openbsd-misc=149743861203607=2 > > > > Can I do this now? > > If not - why? Is it dangerous? > > You should be able to do this as an NFS mount. With all the nastiness > that NFS mounts come with, but it's an option. (I'm doing it in > production on 6.6-STABLE.) > -Adam >
Re: mount dir over another dir
On 2020-04-16 02:13, Ono Caritofilaxy wrote: Hello. I want to mount /usr/local/srcdir /usr/local/dstdir/subdir answer was "no" 3 years ago https://marc.info/?l=openbsd-misc=149743861203607=2 Can I do this now? If not - why? Is it dangerous? You should be able to do this as an NFS mount. With all the nastiness that NFS mounts come with, but it's an option. (I'm doing it in production on 6.6-STABLE.) -Adam
Re: mount dir over another dir
On 2020-04-16, Ono Caritofilaxy wrote: > Hello. > > I want to mount /usr/local/srcdir /usr/local/dstdir/subdir > > answer was "no" 3 years ago > https://marc.info/?l=openbsd-misc=149743861203607=2 > > Can I do this now? Same as was mentioned in the earlier thread, you can do this by mounting over NFS from 127.0.0.1. If that isn't enough then you will need to rearrange partitions/mountpoints or you could try porting https://bindfs.org/ (using FUSE, which OpenBSD supports to some degree...) > If not - why? Is it dangerous? We used to have NULLFS but it was really always just meant as demonstration code, I don't recall the original reason for removing it but it has been gone for 15 years and since then nobody saw enough need to write non-demonstration code to replace it.
Re: mount dir over another dir
Hi, From: Ono Caritofilaxy Date: Thu, 16 Apr 2020 10:13:51 +0300 > Hello. > > I want to mount /usr/local/srcdir /usr/local/dstdir/subdir > > answer was "no" 3 years ago > https://marc.info/?l=openbsd-misc=149743861203607=2 > > Can I do this now? > If not - why? Is it dangerous? I have no solution about your question. Maybe FUSE (Filesystem in Userspace) can solve your question. SSHFS is useing FUSE. SSHFS can mount remote file system. https://github.com/libfuse/libfuse https://github.com/libfuse/sshfs Oh, I just realized: $ sshfs localhost:/usr/local/srcdir /usr/local/dstdir/subdir How about it? -- ASOU Masato
mount dir over another dir
Hello. I want to mount /usr/local/srcdir /usr/local/dstdir/subdir answer was "no" 3 years ago https://marc.info/?l=openbsd-misc=149743861203607=2 Can I do this now? If not - why? Is it dangerous?