Date: Mon, 18 Feb 2008 11:29:56 +0100 From: "Heiko Wundram (Beenic)" <wundram@beenic.net> To: freebsd-questions@freebsd.org Subject: Re: Get the empty space on a file system Message-ID: <200802181129.56727.wundram@beenic.net> In-Reply-To: <200802181025.m1IAPdHc060834@banyan.cs.ait.ac.th> References: <200802181025.m1IAPdHc060834@banyan.cs.ait.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
Am Montag, 18. Februar 2008 11:25:39 schrieb Olivier Nicole: > How to: > > 1) knowing the name of the directory, how toknow the file system it > belongs to (not considering symbolic links, I can decide that the > directory is always a real path); > > 2) knowing the file system from 1), how to check the remaining space > in the file system? man 2 statfs man 2 statvfs The former is freebsd-specific, though (AFAIK); the latter is portable (i.e., POSIX), but might return garbage (which is also indicated in the man-page for it). -- Heiko Wundram Product & Application Development
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802181129.56727.wundram>