Bug 122652 - [patch] du(1) support for inode count
Summary: [patch] du(1) support for inode count
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2008-04-11 08:30 UTC by sat
Modified: 2017-12-31 22:37 UTC (History)
0 users

See Also:

du_inode.diff (4.13 KB, patch)
2008-04-11 08:30 UTC, sat
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sat freebsd_committer 2008-04-11 08:30:01 UTC
This patch adds support for inode count to du. Mirrored here:

Based on NetBSD's bin/22405 by
	Jonathan Perkin <jonathan@perkin.org.uk>
Comment 1 David Schultz freebsd_committer 2008-04-11 22:18:07 UTC
Correct me if I'm mistaken, but doesn't this get the wrong answer
when a file has multiple hard links?
Comment 2 Andrew Pantyukhin freebsd_committer 2008-05-03 10:43:23 UTC
Well, du doesn't count size multiple times in case of hard links,
so why should the same loop count inodes the wrong way? I just
tested, and it acts as expected: neither "df -i" nor "du -i"
counters increase when a new hard link is created.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:36 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped