Summary: | sys-apps/util-linux-2.24.1: misbehavior when listing mount points in /etc/fstab that involve symlinks | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | alexander |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Juergen Rose
2014-02-14 20:38:17 UTC
I get the same result with util-linux-2.24.1-r2. (In reply to Juergen Rose from comment #0) > If I boot my system, it looks at the first view, as /home/ftp is not mounted: > > rose@wildcat:/home/rose(1)$ df -T | grep home > /dev/mapper/vg1-home ext4 257899908 120121180 124655144 50% > /home_wildcat > > rose@wildcat:/home/rose(2)$ ll /home_wildcat/ftp/ > insgesamt 0 > > But if I look with 'mount' I see, that it is mounted: > > rose@wildcat:/home/rose(3)$ mount | grep home > /dev/mapper/vg1-home on /home_wildcat type ext4 (rw,noatime,data=ordered) > /dev/mapper/vg1-ftp on /home_wildcat/ftp type xfs > (rw,noatime,attr2,inode64,noquota) > > > If I umount /home_wildcat, I see with the next 'df' that /dev/mapper/vg1-ftp > is mounted at /home_wildcat/ftp. It looks, if the system mount at first > /dev/mapper/vg1-ftp on /home_wildcat/ftp and then /dev/mapper/vg1-home on > /home_wildcat. > > In /etc/fstab I have: > > root@wildcat:/root(4)# grep -u2 home /etc/fstab > /dev/vg1/portage /usr/portage_wildcat ext2 noatime 1 2 > /dev/vg1/distfiles /usr/local/portage/distfiles_wildcat ext2 noatime 1 2 > /dev/vg1/home /home_wildcat ext4 noatime 1 2 > /dev/vg1/opt /opt ext3 noatime 1 2 > /dev/vg1/tmp /tmp reiserfs noatime 1 > 2 > -- > /dev/vg1/data /data_wildcat ext4 noatime 1 2 > /dev/vg1/src /usr/src_wildcat ext3 noatime 1 2 > /dev/vg1/ftp /home/ftp xfs noatime 1 2 Hmm.. I'm not fully understand how /home and /home_wildcat are related to each other. There is no /home and /home_wildcat/ftp in your fstab. :) (In reply to Alexander Tsoy from comment #2) > (In reply to Juergen Rose from comment #0) > > If I boot my system, it looks at the first view, as /home/ftp is not mounted: > > > > rose@wildcat:/home/rose(1)$ df -T | grep home > > /dev/mapper/vg1-home ext4 257899908 120121180 124655144 50% > > /home_wildcat > > > > rose@wildcat:/home/rose(2)$ ll /home_wildcat/ftp/ > > insgesamt 0 > > > > But if I look with 'mount' I see, that it is mounted: > > > > rose@wildcat:/home/rose(3)$ mount | grep home > > /dev/mapper/vg1-home on /home_wildcat type ext4 (rw,noatime,data=ordered) > > /dev/mapper/vg1-ftp on /home_wildcat/ftp type xfs > > (rw,noatime,attr2,inode64,noquota) > > > > > > If I umount /home_wildcat, I see with the next 'df' that /dev/mapper/vg1-ftp > > is mounted at /home_wildcat/ftp. It looks, if the system mount at first > > /dev/mapper/vg1-ftp on /home_wildcat/ftp and then /dev/mapper/vg1-home on > > /home_wildcat. > > > > In /etc/fstab I have: > > > > root@wildcat:/root(4)# grep -u2 home /etc/fstab > > /dev/vg1/portage /usr/portage_wildcat ext2 noatime 1 2 > > /dev/vg1/distfiles /usr/local/portage/distfiles_wildcat ext2 noatime 1 2 > > /dev/vg1/home /home_wildcat ext4 noatime 1 2 > > /dev/vg1/opt /opt ext3 noatime 1 2 > > /dev/vg1/tmp /tmp reiserfs noatime 1 > > 2 > > -- > > /dev/vg1/data /data_wildcat ext4 noatime 1 2 > > /dev/vg1/src /usr/src_wildcat ext3 noatime 1 2 > > /dev/vg1/ftp /home/ftp xfs noatime 1 2 > > Hmm.. I'm not fully understand how /home and /home_wildcat are related to > each other. There is no /home and /home_wildcat/ftp in your fstab. :) /home is a symbolic to /home_wildcat. This worked until now without problems. Now I changed /etc/fstab and replaced /home/ftp by /home_wildcat/ftp. After the next reboot, everything was mounted as expected: root@wildcat:/root(6)# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 131980772 31158128 94095376 25% / none 1985880 996 1984884 1% /run udev 10240 0 10240 0% /dev tmpfs 1985880 0 1985880 0% /dev/shm tmpfs 1985880 0 1985880 0% /sys/fs/cgroup /dev/mapper/vg1-data 351829148 158981384 174952752 48% /data_wildcat /dev/mapper/vg1-tmp 8388348 79744 8308604 1% /tmp /dev/mapper/vg1-distfiles 16772008 9995444 5937704 63% /usr/local/portage/distfiles_wildcat /dev/mapper/vg1-portage 2046355 422810 1518688 22% /usr/portage_wildcat /dev/mapper/vg1-home 257899908 120121176 124655148 50% /home_wildcat /dev/mapper/vg1-opt 3997376 219016 3568648 6% /opt /dev/mapper/vg1-var 8125880 1578428 6128024 21% /var /dev/mapper/vg1-src 16382888 3298408 12245620 22% /usr/src_wildcat /dev/mapper/vg1-vtmp 16776700 203368 16573332 2% /var/tmp /dev/mapper/vg1-ftp 136248320 32928 136215392 1% /home_wildcat/ftp root@wildcat:/root(7)# ll /home lrwxrwxrwx 1 root root 12 Dec 30 2011 /home -> home_wildcat/ (In reply to Juergen Rose from comment #3) ugh, please stop quoting in full replies. it's just spamming at this point. > /home is a symbolic to /home_wildcat. util-linux has been reworking how it handles symlinks, so something might have broken > This worked until now without problems. unless i missed it, you didn't say what version was working for you. so what is the last version that worked and the first that failed ? |