Skip to content

df: Displays rootfs on different place and missing bind mounted entry with -a #9883

@oech3

Description

@oech3
$ unshare -rm bash
# mount -t tmpfs -o size=1M rootfs /mnt
# mount --bind /mnt /mnt
# mount -t tmpfs dummydev /mnt
# mount --move /mnt /

# uu-df
......
Filesystem     1K-blocks    Used Available Use% Mounted on
......
rootfs              1024       0      1024   0% /mnt
dummydev       118283244 7190584 109404248   7% /
# uu-df -a
Filesystem     1K-blocks    Used Available Use% Mounted on
......
rootfs              1024       0      1024   0% /mnt
dummydev       118283244 7190648 109404184   7% /

# gnu-df
Filesystem     1K-blocks    Used Available Use% Mounted on
dummydev       118283244 7190504 109404328   7% /
......
rootfs              1024       0      1024   0% /mnt
# gnu-df -a
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda2              -       -         -    - /
......
rootfs              1024       0      1024   0% /mnt
rootfs              1024       0      1024   0% /mnt
dummydev       118283244 7190616 109404216   7% /

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions