[Bug 223015] [tmpfs] [patch] tmpfs does not support sparse files

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Dec 2022 12:18:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223015

--- Comment #12 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=37aea2649ff707f23d35309d882b38e9ac818e42

commit 37aea2649ff707f23d35309d882b38e9ac818e42
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-10-20 13:17:43 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-12-09 12:17:12 +0000

    tmpfs: for used pages, account really allocated pages, instead of file
sizes

    This makes tmpfs size accounting correct for the sparce files. Also
    correct report st_blocks/va_bytes. Previously the reported value did not
    accounted for the swapped out pages.

    PR:     223015
    Reviewed by:    markj
    Tested by:      pho
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D37097

 sys/fs/tmpfs/tmpfs.h        |  18 ++++++-
 sys/fs/tmpfs/tmpfs_subr.c   | 118 ++++++++++++++++++++++++++++++++++++++++----
 sys/fs/tmpfs/tmpfs_vfsops.c |   6 ++-
 sys/fs/tmpfs/tmpfs_vnops.c  |  17 +++++--
 sys/kern/uipc_shm.c         |   2 +-
 5 files changed, 144 insertions(+), 17 deletions(-)

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