public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 215514] New: Documentation: meaning of device number / ID in `stat` and `stat()`
@ 2022-01-21 12:40 bugzilla-daemon
  0 siblings, 0 replies; only message in thread
From: bugzilla-daemon @ 2022-01-21 12:40 UTC (permalink / raw)
  To: linux-man

https://bugzilla.kernel.org/show_bug.cgi?id=215514

            Bug ID: 215514
           Summary: Documentation: meaning of device number / ID in `stat`
                    and `stat()`
           Product: Documentation
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: man-pages
          Assignee: documentation_man-pages@kernel-bugs.osdl.org
          Reporter: jwagner@computing.dcu.ie
        Regression: No

The man page `man 2 stat` for `stat()` gives the impression that `stat.st_dev`
is always composed of major and minor of an existing block device. However,
filesystems such as `btrfs` allocate new device number not (clearly) related to
the underlying device(s). The description of `st_dev` needs to be updated.

Similarly, a clarification would be useful in `man 1 stat` either directly in
the description of the `%d` and `%D` formats or after the formats table.

My system: openSUSE Leap 15.3

Checked in current man pages as of 2022-01-21:
* https://man7.org/linux/man-pages/man2/stat.2.html
* https://man7.org/linux/man-pages/man1/stat.1.html

Related:
* https://github.com/util-linux/util-linux/issues/1562 (closed, wrong place)

Breadcrumbs:
* https://github.com/util-linux/util-linux/issues/1563 (closed, wrong place)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-21 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-21 12:40 [Bug 215514] New: Documentation: meaning of device number / ID in `stat` and `stat()` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox