| Summary: | du does not display the size of /run | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tomas Toth <ttomasz> | ||||
| Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 16 | CC: | kdudka, maxamillion, ovasik, p, twaugh | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-02-27 08:50:41 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Tomas Toth
2012-02-25 12:48:12 UTC
/run is symlink to /var/run in F16+ - systemd changes... therefore it probably doesn't like when /var is called afterwards - so maybe protection for counting duplicates. What does the du print as an error message? What is the error code? Could you please get strace of the "du -s /var /run" ? (This one should be sufficient, others are just modifications of this) I don't have F16 installation available at the moment, so I can't check that myself. Ondrej, The machine is an F16 upgraded from F15 using preupgrade. The /run is a directory not a symlink: $ ll -d /var /run /var/run drwxr-xr-x. 34 root root 1180 Feb 25 13:06 /run drwxr-xr-x. 19 root root 4096 Dec 11 13:37 /var drwxr-xr-x. 34 root root 1180 Feb 25 13:06 /var/run $ mount | egrep 'var|run' tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,seclabel,mode=755) tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,seclabel,mode=755) tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,seclabel,mode=755) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime) The strace will follow soon. Created attachment 565756 [details]
Output of: strace du -s /var /run > strace_du_var_run.log 2>&1
There is no error message. The return code ($?) is zero. (In reply to comment #2) > $ mount | egrep 'var|run' > tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,seclabel,mode=755) > tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,seclabel,mode=755) It looks like there is a bind mount between /run and /var/run on your machine. du does not list a directory that was already included in a previous directory. There is a ticket at Austin Group for this issue: http://austingroupbugs.net/view.php?id=527 You can use the --count-links (-l) option as a workaround. *** This bug has been marked as a duplicate of bug 747075 *** |