Skip to contentSkip to conversation

Fix readonly ubd

PATCH In review Martin Pärtel 2 participants 2 messages Jun 7, 2012 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix readonly ubd

Hi,

ubd_file_size() was recently patched so that it fails if an image is readonly. Patch attached.

arch/um/drivers/ubd_kern.c +1 -1
@@ -514,7 +514,7 @@
 		goto out;
 	}
 
-	fd = os_open_file(ubd_dev->file, global_openflags, 0);
+	fd = os_open_file(ubd_dev->file, of_read(OPENFLAGS()), 0);
 	if (fd < 0)
 		return fd;
 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 4 lines · Martin Pärtel

Hi,

ubd_file_size() was recently patched so that it fails if an image is readonly. Patch attached.

Thanks for the patch.
Can you please follow Documentation/SubmittingPatches?

Your patch needs at least a description and a Signed-off-By.

Signature · 13 lines
Thanks,
//richard

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel