diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-05-28 10:49:51 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-05-28 10:51:19 +0200 |
commit | 49de4585a650c5e70cace733cb466fd007526f80 (patch) | |
tree | e130b9f9bfaf4f0532e1a062f40bc8e12f9265f7 /libnetfs | |
parent | a04c7bf83172faa7cb080fbe3b6c04a8415ca645 (diff) | |
download | hurd-49de4585a650c5e70cace733cb466fd007526f80.tar.gz hurd-49de4585a650c5e70cace733cb466fd007526f80.tar.bz2 hurd-49de4585a650c5e70cace733cb466fd007526f80.zip |
libdiskfs,libnetfs: add missing io_pathconf cases
* 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.
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/io-pathconf.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libnetfs/io-pathconf.c b/libnetfs/io-pathconf.c index 2fd3f5bc..0791243e 100644 --- a/libnetfs/io-pathconf.c +++ b/libnetfs/io-pathconf.c @@ -40,6 +40,9 @@ netfs_S_io_pathconf (struct protid *user, case _PC_VDISABLE: case _PC_SOCK_MAXBUF: case _PC_PATH_MAX: + case _PC_REC_MAX_XFER_SIZE: + case _PC_REC_INCR_XFER_SIZE: + case _PC_SYMLINK_MAX: *value = -1; break; @@ -49,6 +52,7 @@ netfs_S_io_pathconf (struct protid *user, case _PC_CHOWN_RESTRICTED: case _PC_NO_TRUNC: /* look at string_t trunc behavior in MiG */ + case _PC_2_SYMLINKS: *value = 1; break; @@ -62,6 +66,12 @@ netfs_S_io_pathconf (struct protid *user, *value = 32; break; + case _PC_REC_MIN_XFER_SIZE: + case _PC_REC_XFER_ALIGN: + case _PC_ALLOC_SIZE_MIN: + *value = vm_page_size; + break; + default: return EINVAL; } |