[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: NFS 共享目录其他文件系统挂载问题



Same here, Android 7.0. It seems the VLC devs don't care about their network functions. FTP is broken for years, NFS maybe too. SFTP works. I am amazed that nobody has replied to your question yet.
https://www.reddit.com/r/VLC/comments/i0ayv6/vlc_on_android_does_not_load_nfs_shares/
LOL

Longhao.Chen <Longhao.Chen@outlook.com> 于2021年9月6日周一 下午11:56写道:
刚好我昨天试了一下 NFS-Ganesha,但出现了一个新的问题:在电脑上挂载一切正常,但在手机上用 VLC 挂载不了,NFS-Ganesha 日志显示:

ganesha.nfsd-19881[svc_21] rpc :TIRPC :EVENT :svc_vc_wait: 0xad10f760 fd 32
recv errno 104 (will set dead)

找了一天没用找到原因,所以目前还是打算使用 crossmnt 参数来解决这个问题。

于 2021年9月6日 GMT+08:00上午9:23:44, Ding Honghui <hhding.gnu@gmail.com> 写到:
那个叫做 NFS-Ganesha,我上次看到的是用来把 ceph 转成 nfs 的。之前看到过 user mode nfs,不确定是不是同一个。

Longhao Chen <Longhao.Chen@outlook.com> 于2021年9月4日周六 下午5:18写道:
这个可能更方便,我哪天试一试。

在 2021年9月3日星期五 CST 下午6:17:28,Ding Honghui 写道:
> 也可以用用户态的nfs server实现
>
> 发自我的iPhone
>
>
> > 在 2021年9月3日,上午12:21,Longhao Chen <Longhao.Chen@outlook.com> 写道:
> >
> > 已解决,非常感谢。
> >
> > 感觉这真是一个奇怪的特性。
> >
> >
> >> 在 2021年9月3日星期五 CST 上午12:01:39,Dongsheng Song 写道:
> >> 这是特性,不是错误。参见
> >>
> >> 1.
> >> https://stackoverflow.com/questions/20320137/how-to-explain-nfs-crossmnt-> >> ar
 gument
> >
> > 2. https://man7.org/linux/man-pages/man5/exports.5.html
> >
> >>
> >> 你必须将每个需要给客户端访问的挂接点导出,可以使用 crossmnt 或 nohide 选项,让客户端可以方便访问。
> >>
> >>
> >>
> >>> On Thu, Sep 2, 2021 at 11:40 PM Longhao Chen <Longhao.Chen@outlook.com>
> >>> wrote:
> >>>
> >>>
> >>> 大家好,服务器上有一个目录,我使用 nfs 和 smb 将其共享出来。在这个目录下,有一个叫做 mnt
> >>> 的文件夹,是空的,但当我将一个u盘挂载到这个文件夹下
> >
> > 时,发现在 smb 下可以正常访问文件,在 nfs
> >
> >>> 下访问这个文件夹仍然是空的,客户端重新挂载 nfs 也一样。
> >>>
> >>>
> >>>
> >>> 我又新建了一个目录,并在这个目录下挂载了一个 tmpfs ,我使用 smb 在其中建立文件:文件在服务器命令行中可见,在 nfs
> >>> 中不可见;使用
> >>> nfs 在
> >
> > 其中创建文件,文件在命令行和 smb 中都不可见;但当我卸载了 tmpfs 后,发现使用 nfs 创建的文件在那个文件夹中。
> >
> >>>
> >>>
> >>>
> >>> 也就是说,在 nfs 共享目录下,挂载其他文件系统,使用 nfs
> >>> 进行访问,仍然访问的是之前的文件系统。现在请问大家,这个问题该如何解决?如果这个可能是
> >
> > bug ,那么在你们的系统中是否能复现这个问题?
> >
> >>>
> >>>
> >>>
> >>> /etc/exports
> >>> ```
> >>> /data/home
> >>> 192.168.3.0/24(insecure,all_squash,rw,async,no_subtree_check,no_root_squ
> >>> as
> >>> h,anonuid=0,anongid=0)
> >
> > ```
> >
> >>>
> >>>
> >>>
> >>> 服务器内核版本:5.3.5
> >>> 客户端内核版本:5.10.0
> >>> 服务器所用文件系统:btrfs
> >>>
> >>>
> >>>
> >>> --
> >>> Longhao Chen
> >>>
> >>>
> >>>
> >>> https://github.com/Longhao-Chen/
> >
> >
> >
> > --
> > Longhao Chen
> >
> > https://github.com/Longhao-Chen/
--
Longhao Chen

https://github.com/Longhao-Chen/
--
Longhao Chen

https://github.com/Longhao-Chen/
https://cspmrt.github.io/

Reply to: