Path: utzoo!attcan!uunet!snorkelwacker!apple!justin From: justin@Apple.COM (Justin Walker) Newsgroups: comp.unix.aux Subject: Re: behavior of "df" under root and regular user Message-ID: <43698@apple.Apple.COM> Date: 7 Aug 90 16:05:53 GMT References: <3022@dftsrv.gsfc.nasa.gov> Distribution: na Organization: Apple Computer Inc, Cupertino, CA Lines: 32 In article <3022@dftsrv.gsfc.nasa.gov> jim@jagmac2.gsfc.nasa.gov (Jim Jagielski) writes: > ... >When run by root, df prints out the WRONG amount of free blocks... when run >by a regular-dude, then the free block count os correct. When root runs, df >adds back in the 10% that is used by the BSD file-system. This gives erroneous >information, since (as far as I know) this space is NOT available for file >storage... I believe that for BSD file systems, the kernel reserves 10% of the total block count for "root usage", so that regular-dudes cannot snarf up all the file system for their own nefarious uses (e.g., cat * > foo) and fowl up the system. The space is available for file storage, but only for root's use. This is not the case for SVFS types, where you regular-dudes can gobble to your hearts' content. > Jim Jagielski NASA/GSFC, Code 711.1 > jim@jagmac2.gsfc.nasa.gov Greenbelt, MD 20771 Regards, Justin Justin C. Walker, Curmudgeon-At-Large (justin@apple.com) * A/UX Group *------------------| Apple Computer, Inc. | When meetings are outlawed, 10440 Bubb Rd, | Only outlaws will have meetings Cupertino, CA 95014 * -- Justin C. Walker, Curmudgeon-At-Large (justin@apple.com) * A/UX Group *------------------| Apple Computer, Inc. | When meetings are outlawed, 10440 Bubb Rd, | Only outlaws will have meetings Cupertino, CA 95014 *