Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2017 23:53:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-fs@FreeBSD.org
Subject:   [Bug 223015] [tmpfs] tmpfs does not support sparse files
Message-ID:  <bug-223015-3630-RgQFtcshXu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-223015-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-223015-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223015

Keith White <kwhite@site.uottawa.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #187197|0                           |1
        is obsolete|                            |

--- Comment #6 from Keith White <kwhite@site.uottawa.ca> ---
Created attachment 187384
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187384&action=
=3Dedit
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=3D10m 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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223015-3630-RgQFtcshXu>