Re: linux disc space

2008-02-18 Thread Tobiah
DataSmash wrote: > I simply want to capture the free disc space in a variable so that I > can compare changes. I'm aware of a few commands like "df -h" or "du - > k", but I can't figure out how to capture those values as a variable. > I also looked at os.statvfs(), but that output doesn't seem to

Re: linux disc space

2008-02-15 Thread Jeff Schwab
Steve Holden wrote: > Jeff Schwab wrote: >> I'm not sure how superuser-only space would be reserved in the first >> place. I don't see anything relevant in the fdisk man page. > > The UFS and ext2 filesystem space allocation routines become very > inefficient when free space gets too low, so fo

Re: linux disc space

2008-02-15 Thread Jeff Schwab
Christian Heimes wrote: > Jeff Schwab wrote: >> I'm not sure how superuser-only space would be reserved in the first >> place. I don't see anything relevant in the fdisk man page. > > man mkfs > > :) Thank you. Looks like the feature is only supported by particular file systems. I don't see

Re: linux disc space

2008-02-15 Thread Steve Holden
Jeff Schwab wrote: > I'm not sure how superuser-only space would be reserved in the first > place. I don't see anything relevant in the fdisk man page. The UFS and ext2 filesystem space allocation routines become very inefficient when free space gets too low, so for regular uses the filesystem

Re: linux disc space

2008-02-15 Thread Matthew Woodcraft
In article <[EMAIL PROTECTED]>, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Available space is how much you can actually access as a non-root user. > Apparently (thank you Jean-Paul), space can be reserved for superuser > use only; such space is "free," but not "available." > I'm not sure how su

Re: linux disc space

2008-02-15 Thread Christian Heimes
Jeff Schwab wrote: > I'm not sure how superuser-only space would be reserved in the first > place. I don't see anything relevant in the fdisk man page. man mkfs :) Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: linux disc space

2008-02-15 Thread Jeff Schwab
DataSmash wrote: > On Feb 15, 1:32 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: >> Chris wrote: >>> On Feb 15, 7:10 pm, DataSmash <[EMAIL PROTECTED]> wrote: I simply want to capture the free disc space in a variable so that I can compare changes. I'm aware of a few commands like "df -h" or

Re: linux disc space

2008-02-15 Thread DataSmash
On Feb 15, 1:32 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > Chris wrote: > > On Feb 15, 7:10 pm, DataSmash <[EMAIL PROTECTED]> wrote: > >> I simply want to capture the free disc space in a variable so that I > >> can compare changes. I'm aware of a few commands like "df -h" or "du - > >> k", but

Re: linux disc space

2008-02-15 Thread Jean-Paul Calderone
On Fri, 15 Feb 2008 11:32:09 -0800, Jeff Schwab <[EMAIL PROTECTED]> wrote: >Chris wrote: >> On Feb 15, 7:10 pm, DataSmash <[EMAIL PROTECTED]> wrote: >>> I simply want to capture the free disc space in a variable so that I >>> can compare changes. I'm aware of a few commands like "df -h" or "du - >

Re: linux disc space

2008-02-15 Thread Jeff Schwab
Chris wrote: > On Feb 15, 7:10 pm, DataSmash <[EMAIL PROTECTED]> wrote: >> I simply want to capture the free disc space in a variable so that I >> can compare changes. I'm aware of a few commands like "df -h" or "du - >> k", but I can't figure out how to capture those values as a variable. >> I al

Re: linux disc space

2008-02-15 Thread Chris
On Feb 15, 7:10 pm, DataSmash <[EMAIL PROTECTED]> wrote: > I simply want to capture the free disc space in a variable so that I > can compare changes. I'm aware of a few commands like "df -h" or "du - > k", but I can't figure out how to capture those values as a variable. > I also looked at os.sta

linux disc space

2008-02-15 Thread DataSmash
I simply want to capture the free disc space in a variable so that I can compare changes. I'm aware of a few commands like "df -h" or "du - k", but I can't figure out how to capture those values as a variable. I also looked at os.statvfs(), but that output doesn't seem to make any sense at all to