diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2022-10-17 17:46:22 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2022-10-19 17:24:07 +0000 |
commit | e9adbcdf2e8000efaca404abcc904eec4eb4ae29 (patch) | |
tree | 4d66863f51ea1ddd1e9347b03ae77a64eacbcee1 | |
parent | 85cff1455a8c3422c6ba8a9f895b5d65118f3499 (diff) |
tmpfs: report minimal hole size
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D37024
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index aaeaa843eb43..96ceb0ad5198 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -1634,6 +1634,10 @@ tmpfs_pathconf(struct vop_pathconf_args *v) *retval = 64; break; + case _PC_MIN_HOLE_SIZE: + *retval = PAGE_SIZE; + break; + default: error = vop_stdpathconf(v); } |