Skip to content

show amount of disk space used by files with zero hardlinks #517

@lolbinarycat

Description

@lolbinarycat

unlinked files generally occur one of two ways:

  1. unnamed temporaries
  2. a file has been deleted, but its file descriptor is still held open.

I recently encountered a situation where tmpfs got filled up by a logfile, and then removing the logfile did not actually free up any space, because the program was still holding the fd of the logfile.

These files are not seen by programs like du, however, df is able to see the total amount of space used on a drive, including unlinked files, so simple subtraction could be used to see how much of the disk is taken up by unlinked files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions