mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
LXC from native: map block filesystems
This commit is contained in:
parent
0f13a525d2
commit
d1520c5c9a
@ -291,6 +291,10 @@ lxcAddFstabLine(virDomainDefPtr def, lxcFstabPtr fstab)
|
|||||||
src = fstab->src;
|
src = fstab->src;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Is it a block device that needs special favor? */
|
||||||
|
if (STRPREFIX(fstab->src, "/dev/"))
|
||||||
|
type = VIR_DOMAIN_FS_TYPE_BLOCK;
|
||||||
|
|
||||||
/* Do we have ro in options? */
|
/* Do we have ro in options? */
|
||||||
readonly = virStringArrayHasString(options, "ro");
|
readonly = virStringArrayHasString(options, "ro");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user