Bug 211749

Summary: RFE: add -r option to losetup to create a read-only loop
Product: [Fedora] Fedora Reporter: Luciano Rocha <lfrocha+rhbugzilla>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: konradr
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-28 12:47:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 237659    
Attachments:
Description Flags
patch adding -r option to losetup none

Description Luciano Rocha 2006-10-21 19:09:24 UTC
Current losetup supports creating RO loops: the set_loop has an argument that
requests and returns the open mode, and the function also checks if the
filesystem the file resides on is mounted read-only.

But there is no way to specify the RO mode from the command line. The attached
patch adds a new -r option.

Comment 1 Luciano Rocha 2006-10-21 19:09:24 UTC
Created attachment 139067 [details]
patch adding -r option to losetup

Comment 2 Karel Zak 2006-11-01 14:11:37 UTC
FC6 seems like better target for this feature. Thanks for your patch.