/*********************************************************
- * Copyright (C) 1998-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
}
-/*
- *----------------------------------------------------------------------
- *
- * FileIO_GetVolumeSectorSize --
- *
- * Get sector size of underlying volume.
- *
- * Results:
- * Always 512, there does not seem to be a way to query sectorSize
- * from filename. But O_DIRECT boundary alignment constraint is
- * always 512, so use that.
- *
- * Side effects:
- * None
- *
- *----------------------------------------------------------------------
- */
-
-Bool
-FileIO_GetVolumeSectorSize(const char *pathName, // IN:
- uint32 *sectorSize) // OUT:
-{
- ASSERT(sectorSize != NULL);
-
- *sectorSize = 512;
-
- return TRUE;
-}
-
-
#if defined(__APPLE__)
/*
*----------------------------------------------------------------------
/*********************************************************
- * Copyright (C) 1998-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
uint32 FileIO_GetFlags(FileIODescriptor *file);
+#if defined(_WIN32)
Bool FileIO_GetVolumeSectorSize(const char *name,
uint32 *sectorSize);
+#endif
Bool FileIO_SupportsFileSize(const FileIODescriptor *file,
uint64 testSize);