[stgt] [PATCH 2/2] tgt-admin: check if device is mounted on /
dorons at Voltaire.COM
Wed Sep 10 08:14:49 CEST 2008
Bastian Blank wrote:
> On Thu, Sep 04, 2008 at 04:39:24PM +0300, Doron Shoham wrote:
>> deny allocation of a device which
>> which mounted on the same device as rootfs.
>> also deny the allocation of swap devices.
>> add --allow-mounted flag for overriding this.
> Neither /etc/mtab nor /dev/mounts provides a proper view on the mounted
> filesystems. To check the used state you need to try to open it
Can you please explain how to do it?
What do you mean by "try to open it exclusive"?
Why /dev/mounts does not provides a proper view on the mounted filesystem?
As I mentioned before, this patch is very basic one.
We'll need to expand it in the future.
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt