]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Remove FileIO_GetVolumeSectorSize
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:30 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:30 +0000 (11:23 -0700)
open-vm-tools/lib/file/fileIOPosix.c
open-vm-tools/lib/include/fileIO.h

index 43031a56bb73d040d189bb754af7ad688f418ab7..d85812af074c15a218c3e09f5024980629f37ab1 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * 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
@@ -454,36 +454,6 @@ FileIO_CreateFDPosix(int posix,  // IN: UNIX file descriptor
 }
 
 
-/*
- *----------------------------------------------------------------------
- *
- * 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__)
 /*
  *----------------------------------------------------------------------
index 46ddec01d6c003b9cb45705cbf597bb72b990459..00e1d9eb34e975621da3c2c6ff21fa27498df767 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * 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
@@ -417,8 +417,10 @@ FileIOResult    FileIO_CloseAndUnlink(FileIODescriptor *file);
 
 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);