diff options
author | Will Andrews <will@FreeBSD.org> | 2015-04-10 19:04:39 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2015-04-10 19:04:39 +0000 |
commit | 677c3c0c66f7c3829fd1d1f868b786f1de0416d5 (patch) | |
tree | f8abfe881059b86d812c3d1b852abbb7c145c81d /share/doc/usd/12.vi/Makefile.inc | |
parent | 5ec8fa0ee4fab62d41f1c3a1107aa1b6f317fdc8 (diff) |
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
Notes
Notes:
svn path=/head/; revision=281378
Diffstat (limited to 'share/doc/usd/12.vi/Makefile.inc')
0 files changed, 0 insertions, 0 deletions