为文件系统定义PATH_MAX? [英] Defining PATH_MAX for a filesystem?

查看:94
本文介绍了为文件系统定义PATH_MAX?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在编写一个文件系统. statvfs (甚至是statfs)结构都包含一个字段,该字段指定最大值该路径中名称的长度.由于PATH_MAX是在 pathconf 联机帮助页(

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].

FUSE文件系统是否可以通知运行在顶部的软件 关于正确的最大路径长度?

Is there a way for a FUSE filesystem to inform software running on top of it about the correct maximum path length?

暂时不,不.

如果没有,应该有吗?

If not, should there be?

可能是.欢迎补丁:-)

Probably yes. Patches welcome :-)

供参考:完整的电子邮件线程

这篇关于为文件系统定义PATH_MAX?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆