1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/sys/fs
Will Andrews 677c3c0c66 tmpfs_getattr(): Return more correct allocated byte counts.
For VREG vnodes, return the resident page count (multiplied by PAGE_SIZE)
for the tmpfs node's anonymous VM object that stores actual file contents.

For all other vnodes, return the tmpfs_node's tn_size, which should not
be rounded to a page.

This change allows using stat(2) to identify a sparse file on tmpfs.

Reviewed by:	kib
MFC after:	1 week
2015-04-10 19:04:39 +00:00
..
autofs Restore ABI compatibility, broken in r273127. Note that while this fixes 2015-02-10 16:17:16 +00:00
cd9660
cuse
deadfs
devfs Refine r280308. Do not completely disable timestamping of devfs nodes 2015-04-01 08:25:40 +00:00
ext2fs ext2fs: Plug small memory leak 2015-02-15 14:25:00 +00:00
fdescfs Some fixes for fdescfs lookup code. 2015-02-28 19:57:22 +00:00
fifofs
fuse Fix white spaces. 2015-03-02 19:14:58 +00:00
msdosfs Do not call msdosfs_sync() on the read-only msdosfs mounts. In fact, 2015-04-05 21:10:38 +00:00
nandfs nandfs_meta_bread() calls bread() which can set bp to NULL in some 2015-03-01 21:41:37 +00:00
nfs
nfsclient o Enhance vm_pager_free_nonreq() function: 2015-03-17 19:19:19 +00:00
nfsserver
nullfs
procfs
pseudofs
smbfs
tmpfs tmpfs_getattr(): Return more correct allocated byte counts. 2015-04-10 19:04:39 +00:00
udf
unionfs