mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
LXC from native: map block filesystems
This commit is contained in:
committed by
Daniel P. Berrange
parent
0f13a525d2
commit
d1520c5c9a
@@ -291,6 +291,10 @@ lxcAddFstabLine(virDomainDefPtr def, lxcFstabPtr fstab)
|
||||
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? */
|
||||
readonly = virStringArrayHasString(options, "ro");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user