| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
* libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): For
_PC_REC_MAX_XFER_SIZE, _PC_REC_INCR_XFER_SIZE, _PC_SYMLINK_MAX, return
undefined. For _PC_2_SYMLINKS, return 1. For _PC_REC_MIN_XFER_SIZE,
_PC_REC_XFER_ALIGN, _PC_ALLOC_SIZE_MIN, return page size.
* libnetfs/io-pathconf.c (netfs_S_io_pathconf): Likewise.
|
|
|
|
|
|
| |
It turned out it is the wrong approach.
This reverts commit b6768b326c2e80f5c2326ab46459644d417c6e98.
|
|
|
|
|
|
|
|
| |
Advertize the possibility to handle symlinks depending on
DISKFS_SHORTCUT_SYMLINK.
* libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle
_PC_2_SYMLINKS too.
|
|
|
|
|
|
|
|
| |
Explicitly return -1 also for _PC_PATH_MAX to indicate there is no
limit for it, otherwise EINVAL is returned for it.
* libdiskfs/io-pathconf.c (diskfs_S_io_pathconf): Handle _PC_PATH_MAX
too.
|
|
|
|
|
|
|
| |
* io-pathconf.c (diskfs_S_io_pathconf): Cap diskfs_name_max to size
representable in struct dirent.d_namlen.
(diskfs_S_io_pathconf): Always return 1 for _PC_NO_TRUNC, since we
always constrain diskfs_name_max.
|
|
|
|
|
|
|
| |
* lookup.c (diskfs_lookup): Enforce diskfs_name_max limit for CREATE
and RENAME, returning ENAMETOOLONG for violations.
* io-pathconf.c (diskfs_S_io_pathconf): _PC_NO_TRUNC controlled by
diskfs_name_max setting.
|
|
|
|
|
|
| |
* diskfs.h (diskfs_name_max): Declare new variable.
* io-pathconf.c (diskfs_S_io_pathconf): Use it for _PC_NAME_MAX,
capping it to 1024.
|
|
|
|
|
| |
* io-pathconf.c: Include <unistd.h>.
(diskfs_S_io_pathconf): Provide real definition.
|
| |
|
| |
|
| |
|
| |
|
|
|