]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/lib/util/fd.c
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / spdk / lib / util / fd.c
index fac11676ba9082268d72a407a9b00029d169e6fd..6b0d0d554b16b3dc1772b7ae805b23ad48fbd8f1 100644 (file)
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include "spdk/fd.h"
+#include "spdk/stdinc.h"
 
-#include <sys/ioctl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <stdint.h>
+#include "spdk/fd.h"
 
 #ifdef __linux__
 #include <linux/fs.h>
@@ -80,8 +76,7 @@ spdk_fd_get_blocklen(int fd)
        }
 #endif
 
-       /* Assume 512 if none of the other methods worked */
-       return 512;
+       return 0;
 }
 
 uint64_t