#257 Hard Disk Space Alert or Guage

open
nobody
None
5
2012-12-17
2006-04-13
Scott Brown
No

It would be nice if the tool had some alert or
warning of a users drive space running low, or out.
A guage would also also be nice to see on the main
screen somewhere telling you the space left on the
download directory.

Quella

Discussion

  • Sascha Silbe
    Sascha Silbe
    2006-08-05

    Logged In: YES
    user_id=834

    I'd go even further and ask gtk-gnutella to stop downloading when a configurable threshold has been exceeded.
    Several times already my home partition got full and gtk-gnutella couldn't even properly save it's state at shutdown, leaving me with loads of space wasted with files that will never continue to get downloaded and never deleted because gtk-gnutella doesn't know (anymore) about them.

     
  • Logged In: YES
    user_id=643728

    This should not ever happen although it's best to clear
    the disk-full condition before terminating gtk-gnutella so
    that it can store the current configuration and state.

    However, even if you erase your ~/.gtk-gnutella directory,
    incomplete downloads in ~/gtk-gnutella-downloads/incomplete
    can still be resumed. You only have to find sources for these
    files again. Until then they are shown in the downloads
    display with "No Sources". If you don't use the default
    directory paths, you have to correct these of course after
    losing your configuration so that gtk-gnutella finds the
    incomplete files.

    That said, it's certainly recommendable to use different
    partitions for downloading and your $HOME especially if you
    are low on diskspace and/or download large files. Even if
    gtk-gnutella were more careful, there can be no guarantee
    that the disk doesn't fill up unexpectedly, for example, due
    to another process.

    This feature could probably be implemented using statvfs()
    but one might have to be careful because this function is not
    fully standardized i.e., the standard says "It is unspecified
    whether all members of the statvfs structure have meaningful
    values on all file systems."

     
  • Logged In: YES
    user_id=643728

    This should not ever happen although it's best to clear
    the disk-full condition before terminating gtk-gnutella so
    that it can store the current configuration and state.

    However, even if you erase your ~/.gtk-gnutella directory,
    incomplete downloads in ~/gtk-gnutella-downloads/incomplete
    can still be resumed. You only have to find sources for these
    files again. Until then they are shown in the downloads
    display with "No Sources". If you don't use the default
    directory paths, you have to correct these of course after
    losing your configuration so that gtk-gnutella finds the
    incomplete files.

    That said, it's certainly recommendable to use different
    partitions for downloading and your $HOME especially if you
    are low on diskspace and/or download large files. Even if
    gtk-gnutella were more careful, there can be no guarantee
    that the disk doesn't fill up unexpectedly, for example, due
    to another process.

    This feature could probably be implemented using statvfs()
    but one might have to be careful because this function is not
    fully standardized i.e., the standard says "It is unspecified
    whether all members of the statvfs structure have meaningful
    values on all file systems."

     
  • me me
    me me
    2011-08-08

    I use an alternative drive for file-sharing on MacOSX. I don't use the system drive for any personal work. But all the same, this warning measure would be beneficial. Many programs have an option to warn you or simply change location for saving to if the drive reaches a certain minimal space left. Some such programs let you choose such a minimum quantity remaining on the drive/partition.

    One option might be to have an alternative download location (drive/partition) should the minimum be reached, and the user is warned of this happening.