Date: Mon, 14 Feb 2022 09:46:03 +1100 From: raf <freebsd@raf.org> To: questions@freebsd.org Subject: Re: Definition of struct stat st_size for directories Message-ID: <YgmKK23ng0aqpJhL@raf.org> In-Reply-To: <YgkvesuwegqERLw0@lorvorc.mips.inka.de> References: <YgczTldqDaKNUwEp@raf.org> <YgkvesuwegqERLw0@lorvorc.mips.inka.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 13, 2022 at 05:19:06PM +0100, Christian Weisgerber <naddy@mips.inka.de> wrote: > raf: > > > The FreeBSD stat(2) manpage only defines st_size for > > regular files and symlinks. But I've noticed that for > > directories, it seems to always be the number of > > entries within the directory (including . and ..). I'm > > seeing this with 13.0-RELEASE and zfs. > > Here on UFS it's some multiple of 512, e.g. > > $ stat -f '%N %z' / ~ > / 1024 > /home/naddy 3584 > > -- > Christian "naddy" Weisgerber naddy@mips.inka.de Thanks. That's very helpful to know. cheers, raf
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YgmKK23ng0aqpJhL>