summaryrefslogtreecommitdiff
path: root/core/include/disk.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-01-25 10:57:19 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-01-25 10:57:19 -0800
commit67cd8b349590cc0090dffc6ef7439378d8e71206 (patch)
tree7b9aed8557ec2ad5684ee46923a819a250fc34f9 /core/include/disk.h
parent313d29da0384a0420c80985da4ae6512525df798 (diff)
downloadsyslinux-67cd8b349590cc0090dffc6ef7439378d8e71206.tar.gz
core/fs: make it more explicit sector size is per filesystem
Sector size is per device, and can vary between filesystems. In particular, it is time to be getting rid of assumptions of 512-byte sectors whereever possible. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/include/disk.h')
-rw-r--r--core/include/disk.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/include/disk.h b/core/include/disk.h
index 55d24fbc..da6555ae 100644
--- a/core/include/disk.h
+++ b/core/include/disk.h
@@ -5,12 +5,9 @@
#include <stdint.h>
#include <stdbool.h>
-#define SECTOR_SHIFT 9
-
typedef uint64_t sector_t;
typedef uint64_t block_t;
-
/*
* struct disk: contains the information about a specific disk and also
* contains the I/O function.