Binding a directory with mount onto another forces mv to copy/delete under every circumstances
Binary package hint: util-linux
Following circumstances:
I am binding a directory with "mount -o bind directory newdirectory", which both reside on the same partiton with ext3 as fs.
When I want to move a file from a directory which is on the same partition like both of the above into newdirectory, it does a full copy/delete.
I expected only the inode-Entry (?) to change instead of moving the whole data for moving the file, because the old location as well as the new location of it are both on the same partition.
I suppose the bind option of mount is messing with this but am not really sure.
Is this a bug or does it lie it within the design of ext3 and mount?
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: mount 2.17.2-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Mon Jun 28 00:31:36 2010
InstallationMedia: Xubuntu 9.10 "Karmic Koala" - Release i386 (20091028.3)
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: util-linux
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Freebirth One
- Solved:
- Last query:
- Last reply:
This question was originally filed as bug #599162.