Yes, that's indeed what happens. here's a patch from upstream svn: ndex: nbd-server.c =================================================================== --- nbd-server.c (revision 325) +++ nbd-server.c (revision 326) @@ -1220,8 +1220,12 @@ /* Try again because maybe media was read-only */ fi.fhandle = open(tmpname, O_RDONLY); if(fi.fhandle != -1) { - client->server->flags |= F_AUTOREADONLY; - client->server->flags |= F_READONLY; + /* Opening the base file in copyonwrite mode is + * okay */ + if(!(client->server->flags & F_COPYONWRITE)) { + client->server->flags |= F_AUTOREADONLY; + client->server->flags |= F_READONLY; + } } } if(fi.fhandle == -1) {
nbd-server checks whether it can write to a file before doing stuff, and sets the export to read-only when it can't. This is fine, but it needs to special-case the copyonwrite case, which it didn't do. This patch fixes that. -- <Lo-lan-do> Home is where you have to wash the dishes. -- #debian-devel, Freenode, 2004-09-22 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]