Re: Can one file system be R/W mounted multiple times in Linux?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 12, 2015 at 03:20:19PM +0100, Lukáš Czerner wrote:
> that's not what I meant at all. Yes, things like MMP should help.
> But what I was suggesting was not FS specific.

And what do you want to do when somebody will implement any
cluster-like or multi-root filesystem where share the same FS image
between two loop devices is expected and supported feature?

I don't think there is any such generic VFS restriction, it's about FS
driver(s).

> mount(8) could in case of '-o loop' look whether there is already a
> block device associated with the file and if so use it instead of
> creating new one.
 
mount(8) already checks if the same backing file is not mounted on the
same mountpoint

 # mount -o loop fs.img /mnt/A
 # mount -o loop fs.img /mnt/A
 mount: fs.img is already mounted

but I don't want to make decision about anything else in userspace.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux