Defining PATH_MAX for a filesystem?

前端 未结 6 1584
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 02:09

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_M

6条回答
  •  孤独总比滥情好
    2021-02-04 02:48

    Since this question is tagged "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].

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

    Not at the moment, no.

    If not, should there be?

    Probably yes. Patches welcome :-)

    For reference: Full e-mail thread

提交回复
热议问题