Bug 23178 - no "mount --move"
Summary: no "mount --move"
Status: CLOSED WONTFIX
Alias: None
Product: Branch 4.0
Classification: Distributions
Component: mount (show other bugs)
Version: 4.0
Hardware: all Linux
: P3 major
Assignee: Nobody's working on this, feel free to take it
QA Contact: Q.A. 4.0
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-18 14:33 MSK by Ivan Zakharyaschev
Modified: 2014-11-05 20:17 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2010-03-18 14:33:26 MSK
mount-2.12r-alt6

Although documented in the manpage ("Since Linux 2.5.1 it is possible to atomically move a mounted tree  to  another  place."), "mount --move" doesn't work:

# mount --move /home/STORAGE-for-srv /srv
mount: wrong fs type, bad option, bad superblock on /home/STORAGE-for-srv,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

# 

Whereas "--bind" and "--rbind" work:

# mount --bind /home/STORAGE-for-srv /srv
# umount /srv
# mount --rbind /home/STORAGE-for-srv /srv


Also, "move" is not recognized in /etc/fstab; for example, with the following line:

/home/STORAGE-for-srv	/srv	none move,auto	0	0

the result is:

# mount /srv
mount: unknown filesystem type 'none'
# 

whereas "bind" works with a line like this:

/home/STORAGE-for-srv	/srv	none bind,auto	0	0

.


"mount --move" would be of some real use at least for the case when one doesn't want to create a loop through "mount --bind" like this:

# mount --bind /home/STORAGE-for-srv /srv
# mount --bind /home /srv/ftp/home
Comment 1 Michael Shigorin 2014-11-05 20:17:14 MSK
В 4.0/branch исправления не будут вноситься уже технически (заглушена очередь на сборку), поэтому прошу ошибки, актуальные для sisyphus/p7/t7, перевесить на текущие ветки или сизиф.