问题描述
我目前正在编写一个文件系统. statvfs
(甚至是statfs
)结构都包含一个字段,该字段指定最大值该路径中名称的长度.由于PATH_MAX
是在 pathconf
联机帮助页( getconf
),这意味着它是基于每个目录定义的(因此,由基础文件系统).如何指定此值?
I'm presently writing a filesystem. The statvfs
(and even the statfs
) structs contain a field specifying the maximum length of a name in that path. As PATH_MAX
is defined in the pathconf
manpage (getconf
), this means it is defined on a per-directory basis (and thus, determined by the underlying filesystem). How does one specify this value?
推荐答案
由于该问题被标记为保险丝" ...
Since this question is tagged "FUSE" ...
我在使用FUSE文件系统时遇到了这个问题.我给FUSE开发人员写了一封电子邮件,以寻求澄清.当前libfuse
维护者的答复(2018年1月):无法在FUSE文件系统[驱动程序]中指定最大路径长度.
I just ran into this issue while working on a FUSE filesystem. I wrote an e-mail to the FUSE developers, seeking clarification. Reply from the current libfuse
maintainer (January 2018): There is not a way to specify the maximum path length in a FUSE filesystem [driver].
暂时不,不.
可能是.欢迎补丁:-)
Probably yes. Patches welcome :-)
供参考:完整的电子邮件线程
这篇关于为文件系统定义PATH_MAX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!