<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 18, 2013 at 4:14 PM, Duncan Thomas <span dir="ltr"><<a href="mailto:duncan.thomas@gmail.com" target="_blank">duncan.thomas@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 15 May 2013 06:22, John Griffith <<a href="mailto:john.griffith@solidfire.com">john.griffith@solidfire.com</a>> wrote:<br>
<br>
> What I had in mind for Cinder, was the addition of of a property/column in<br>
> the Volume object. This would be a Read Only flag. The use case here would<br>
> be that a tenant could take a volume that they've populated with data and<br>
> set it to R/O explicitly. This would mean providing an API call to enabled<br>
> setting and clearing of this flag of course.<br>
<br>
This seems like a useful feature<br>
<br>
> In addition, I'd like to modify the cinder attach code, so that if for<br>
> example a volume is "in use" attached to an instance, and a subsequent<br>
> attach was requested, rather than failing stating that the volume must be<br>
> available, we allow the attach however set it as Read Only. This would be<br>
> the default behavior, if we get to a point where we are interested in<br>
> multiple attach R/W (which is quite frankly rather scary to me) I would<br>
> propose that there explicit settings a user must request to do this and that<br>
> it's done via extension or disabled by default via the cinder.conf file.<br>
<br>
I think that doing a read-only attach rather than failing the attach<br>
by default is a /really/ bad idea... for most filesystems, that mount<br>
is going to be entirely useless if there is a R/W mount in existance,<br>
and it is going to lead to read corruption in surprising ways. The<br>
current behaviour is far in preference to that.<br>
<br>
Any form of multi-attach should only happen if specifically requested,<br>
and come with 'here be dragons' warnings...<br>
<br></blockquote><div style>I agree, probably not such a hot idea to try and have it as default behavior. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
Duncan Thomas<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div>