LXC from native: map block filesystems

This commit is contained in:
Cédric Bosdonnat 2014-02-05 15:10:14 +01:00 committed by Daniel P. Berrange
parent 0f13a525d2
commit d1520c5c9a

View File

@ -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");