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

Doron Shoham dorons at Voltaire.COM
Wed Sep 10 08:21:41 CEST 2008


FUJITA Tomonori wrote:
> On Thu, 04 Sep 2008 16:39:24 +0300
> Doron Shoham <dorons at Voltaire.COM> 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.
> 
> Do we really need a new option? Using the --force option is better for
> me.

As I understand, --force option has a different rule when using it with --execute.

"The patch also changes the behaviour of --execute slightly - it now
 tries to delete the targets which are not in the config file; if the
 target is in use, it won't be touched (unless --force is used); if the
 target is not in use, it will be deleted."

So if we use it for allow-mounted also it can be ambiguous.

--
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