Bug 122652

Summary: [patch] du(1) support for inode count
Product: Base System Reporter: sat
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me Keywords: patch
Priority: Normal    
Version: 8.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
du_inode.diff none

Description sat freebsd_committer freebsd_triage 2008-04-11 08:30:01 UTC
This patch adds support for inode count to du. Mirrored here:
http://heka.cenkes.org/sat/diffs/du_inode.diff

Based on NetBSD's bin/22405 by
	Jonathan Perkin <jonathan@perkin.org.uk>
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=22405
Comment 1 David Schultz freebsd_committer freebsd_triage 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 freebsd_triage 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
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:36:37 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>