Skip to contentSkip to conversation

Any Arguments for/against --bind mounts?

DISCUSSION Robert White 2 participants 2 messages Mar 14, 2015 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Is there any practical reason to prefer bind mounts or separately mounting a subvolume?

e.g. assuming /locationA and /locationB are arbitrarily far apart in the file system tree, is there any reason to prefer one of the following over the other

mount -t btrfs -o subvolume=/thing /dev/sdN1 /locationA mount --bind /locationA /locationB

vs.

mount -t btrfs -o subvolume=/thing /dev/sdN1 /locationA mount -t btrfs -o subvolume=/thing /dev/sdN1 /locationB

Are both equally efficient and whatnot?

#1 lore raw
Quoted 10 lines · Robert White

Is there any practical reason to prefer bind mounts or separately mounting a subvolume?

e.g. assuming /locationA and /locationB are arbitrarily far apart in the file system tree, is there any reason to prefer one of the following over the other

mount -t btrfs -o subvolume=/thing /dev/sdN1 /locationA mount --bind /locationA /locationB

Quoted 6 lines

vs.

mount -t btrfs -o subvolume=/thing /dev/sdN1 /locationA mount -t btrfs -o subvolume=/thing /dev/sdN1 /locationB

Are both equally efficient and whatnot?

Internally, they're actually identical.