AlgoViz

Paths, inodes and open files

medium 7 min

A pathname resolves through directory entries to a filesystem object.

Where it shows up

The same pattern appears across everyday software.

  • A deleted log still uses disk space

    After log rotation, the directory listing looks small but the filesystem still reports eight extra GiB allocated. Inspect open files on that filesystem and compare inode numbers before and after rotation. A long-running writer can retain the old inode and continue appending to it. Reopening the intended file lets the old storage be reclaimed once the final reference closes.

  • Verifying the intervention

    Reopen the log using the service’s rotation mechanism. Confirm the worker writes to the new inode. If no process retains deleted files, confirm the mount and account for snapshots, reservations or hidden mount points.