Bug 211749 - RFE: add -r option to losetup to create a read-only loop
Summary: RFE: add -r option to losetup to create a read-only loop
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 237659
TreeView+ depends on / blocked
 
Reported: 2006-10-21 19:09 UTC by Luciano Rocha
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-28 12:47:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch adding -r option to losetup (925 bytes, patch)
2006-10-21 19:09 UTC, Luciano Rocha
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.