]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common source files not applicable to open-vm-tools.
authorKruti <kpendharkar@vmware.com>
Fri, 23 Feb 2024 10:25:09 +0000 (02:25 -0800)
committerKruti <kpendharkar@vmware.com>
Fri, 23 Feb 2024 10:25:09 +0000 (02:25 -0800)
open-vm-tools/lib/file/file.c
open-vm-tools/lib/include/file.h

index 0fd2fc3bc9fd669e33f69a534da5e02f5b55c48f..e6b6a52a8dd02f925792f741479f210e2be1f7de 100644 (file)
@@ -2821,3 +2821,34 @@ File_IsSubPathOf(const char *base, // IN: the base path to test against.
    return isSubPath;
 }
 
+
+/*
+ *---------------------------------------------------------------------------
+ *
+ * File_DoesVolumeSupportConvertBlocks --
+ *
+ *     Does the volume support the new convert block allocation
+ *     IOCTL?
+ *
+ * Results:
+ *     TRUE   Yes
+ *     FALSE  No
+ *
+ * Side effects:
+ *     None
+ *
+ *---------------------------------------------------------------------------
+ */
+
+Bool
+File_DoesVolumeSupportConvertBlocks(const char *pathName)  // IN:
+{
+#if defined(VMX86_SERVER)
+   uint32 vmfsVersion;
+   return (File_GetVMFSVersion(pathName, &vmfsVersion) >= 0 &&
+           vmfsVersion >= 6);
+#else
+   UNUSED_VARIABLE(pathName);
+   return FALSE;
+#endif
+}
index 15b17891dff29b1d13d0249c94613b09b9b56798..726d5c14d58976c09690d9aa39271d8176c9e212 100644 (file)
@@ -383,6 +383,8 @@ Bool File_DoesVolumeSupportAcls(const char *pathName);
 
 Bool File_IsSubPathOf(const char *base, const char *path);
 
+Bool File_DoesVolumeSupportConvertBlocks(const char *pathName);
+
 /*
  *---------------------------------------------------------------------------
  *