[Bug 223015] [tmpfs] tmpfs does not support sparse files
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Oct 22 23:53:46 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223015
Keith White <kwhite at site.uottawa.ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #187197|0 |1
is obsolete| |
--- Comment #6 from Keith White <kwhite at site.uottawa.ca> ---
Created attachment 187384
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=187384&action=edit
POC for using resident_page_count
This patch allows me to use large files with holes. e.g.
# mkdir /tmp/_x
# mount -t tmpfs -osize=10m tmp /tmp/_x
# truncate -s4g /tmp/_x/4g
# ls -ls /tmp/_x/4g
0 -rw-r--r-- 1 root wheel 4294967296 Oct 22 19:51 /tmp/_x/4g
# df /tmp/_x
Filesystem 1K-blocks Used Avail Capacity Mounted on
tmpfs 10240 4 10236 0% /tmp/_x
# du /tmp/_x
0 /tmp/_x
# umount /tmp/_x
# rmdir /tmp/_x
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-fs
mailing list