Date: Fri, 19 Apr 2024 19:54:37 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 278440] [UFS] unxz makes a file which reports wrong usage block size by /usr/bin/du Message-ID: <bug-278440-227-DkIdNRLOVa@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-278440-227@https.bugs.freebsd.org/bugzilla/> References: <bug-278440-227@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=3D278440 --- Comment #3 from Marek Zarychta <zarychtam@plan-b.pwste.edu.pl> --- (In reply to uratan from comment #2) If it's not a bug, then please consider closing this PR. Generally, the file is sparse if the file size in bytes (st_size) is larger than the number of blocks allocated for the file (st_blocks) multiplied by filesystem blocksize. These values can be checked with stat(1) (stat -f "%z= %b" file). Usually, UFS blocksize is 512. However, the aforementioned values concerning the notion of sparseness can = look differently on compressed filesystems like ZFS. --=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-278440-227-DkIdNRLOVa>