Project

General

Profile

Actions

Feature #4086

closed

readonly option for lofiadm(1m)

Added by Alexander Eremin about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Category:
kernel
Start date:
2013-08-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

lofiadm(1m) must be able to add file also as read-only loopback device. For example, read-only mode for lofi device allows to share just one fs image across multiple zones:

global# lofiadm -r usr.img
/dev/lofi/1
global# lofiadm -r usr.img
/dev/lofi/2

global# zonecfg -z zone1
zonecfg:zone1> add device
zonecfg:zone1:device> set match=/dev/rlofi/1
....
global# zonecfg -z zone2
zonecfg:zone2> add device
zonecfg:zone2:device> set match=/dev/rlofi/2
...

Actions

Also available in: Atom PDF