mirror_zfs/man/man7
Sanjeev Bagewadi 20232ecfaa Support for longnames for files/directories (Linux part)
This patch adds the ability for zfs to support file/dir name up to 1023
bytes. This number is chosen so we can support up to 255 4-byte
characters. This new feature is represented by the new feature flag
feature@longname.

A new dataset property "longname" is also introduced to toggle longname
support for each dataset individually. This property can be disabled,
even if it contains longname files. In such case, new file cannot be
created with longname but existing longname files can still be looked
up.

Note that, to my knowledge native Linux filesystems don't support name
longer than 255 bytes. So there might be programs not able to work with
longname.

Note that NFS server may needs to use exportfs_get_name to reconnect
dentries, and the buffer being passed is limit to NAME_MAX+1 (256). So
NFS may not work when longname is enabled.

Note, FreeBSD vfs layer imposes a limit of 255 name lengh, so even
though we add code to support it here, it won't actually work.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Closes #15921
2024-10-01 13:40:27 -07:00
..
dracut.zfs.7 one-word manpage correction: snapshot->rollback (#16294) 2024-07-12 16:27:12 -07:00
vdevprops.7 Add some missing vdev properties (#16346) 2024-07-23 16:34:09 -07:00
zfsconcepts.7 zfsconcepts: add description of block cloning 2023-10-06 09:06:29 -07:00
zfsprops.7 man: update recordsize max size info 2024-09-29 13:19:52 -07:00
zpool-features.7 Support for longnames for files/directories (Linux part) 2024-10-01 13:40:27 -07:00
zpoolconcepts.7 Add slow disk diagnosis to ZED 2024-02-08 09:19:52 -08:00
zpoolprops.7 zpoolprops.7: Fix max length of name of user property 2024-08-08 15:23:33 -07:00