Saggi Mizrahi has posted comments on this change. Change subject: Check that underlying filesystem supports direct IO before creating a domain on it ......................................................................
Patch Set 3: (2 inline comments) .................................................... File vdsm/storage/fileSD.py Line 133: self.remotePath = os.path.basename(self.mountpoint) Line 134: self.metafile = os.path.join(domainPath, sd.DOMAIN_META_DATA, Line 135: sd.METADATA) Line 136: Line 137: self.validateFileSystemFeatures() We don't, we only ignore on RAM only FSs. CIFS doesn't support direct IO. This is available through posixfs Line 138: Line 139: metadata = FileSDMetadata(self.metafile) Line 140: sdUUID = metadata[sd.DMDK_SDUUID] Line 141: domaindir = os.path.join(self.mountpoint, sdUUID) Line 153: except OSError as e: Line 154: if e.errno == errno.EINVAL: Line 155: self.log.error("Underlying file system doesn't support" Line 156: "direct IO") Line 157: raise se.StorageDomainCreationError() Another exception? Really? Does it even matter? It's not like the engine is ever going to handle it differently. Line 158: Line 159: raise Line 160: finally: Line 161: oop.getProcessPool(self.sdUUID).os.unlink(testFilePath) -- To view, visit http://gerrit.ovirt.org/9749 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Icf14d1c4737a88e693e5bebb896aef382b8b424c Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Saggi Mizrahi <smizr...@redhat.com> Gerrit-Reviewer: Ayal Baron <aba...@redhat.com> Gerrit-Reviewer: Barak Azulay <bazu...@redhat.com> Gerrit-Reviewer: Dan Kenigsberg <dan...@redhat.com> Gerrit-Reviewer: Eduardo <ewars...@redhat.com> Gerrit-Reviewer: Federico Simoncelli <fsimo...@redhat.com> Gerrit-Reviewer: Saggi Mizrahi <smizr...@redhat.com> Gerrit-Reviewer: Yaniv Bronhaim <ybron...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server _______________________________________________ vdsm-patches mailing list vdsm-patches@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches