[stgt] [PATCH 2/2] tgt-admin: check if device is mounted on /

Bastian Blank bastian at waldi.eu.org
Thu Sep 4 21:21:20 CEST 2008

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


To live is always desirable.
		-- Eleen the Capellan, "Friday's Child", stardate 3498.9
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 mailing list