Re: [PATCH 0/8] losetup: re-use loop device

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

 



On Tue, Aug 02, 2016 at 07:55:03PM +0200, Stanislav Brabec wrote:
> Here is a patch set that is based on a "safe implementation of loop
> reuse" patch set sent three weeks ago.

I think it makes sense to reuse loop device by mount(8), because the
goal is to mount FS and mount the same FS from two device may be 
disaster, but I'm not sure about losetup. 

Would be enough to keep it stupid and exit with error if the same
backing file is already used and require --force to create duplicate
loopdev?

 if (!force && has_conflict(backing_file, ....))
    err(EXIT_FAILURE, _("%s: already associated with %s"), ....);

  Karel


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



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux