summaryrefslogtreecommitdiffstats
path: root/include/minix.h
diff options
context:
space:
mode:
authorKarel Zak2011-07-21 12:22:46 +0200
committerKarel Zak2011-07-21 12:23:01 +0200
commitc1d26b19818b0caf2aff06f133a1cfa2d2442c61 (patch)
tree3b0ee277171328813044e40116c2dfaf572665db /include/minix.h
parentminix: cleanup global variables and macros (diff)
downloadkernel-qcow2-util-linux-c1d26b19818b0caf2aff06f133a1cfa2d2442c61.tar.gz
kernel-qcow2-util-linux-c1d26b19818b0caf2aff06f133a1cfa2d2442c61.tar.xz
kernel-qcow2-util-linux-c1d26b19818b0caf2aff06f133a1cfa2d2442c61.zip
minix: add MINIX_ prefix to some global macros
... and remove some tailing whitespaces. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/minix.h')
-rw-r--r--include/minix.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/minix.h b/include/minix.h
index 13b1cf6c6..57be23921 100644
--- a/include/minix.h
+++ b/include/minix.h
@@ -58,19 +58,20 @@ struct minix3_super_block {
/*
* Minix subpartitions are always within primary dos partition.
*/
-#define MINIX_MAXPARTITIONS 4
+#define MINIX_MAXPARTITIONS 4
#define MINIX_BLOCK_SIZE_BITS 10
-#define MINIX_BLOCK_SIZE (1<<MINIX_BLOCK_SIZE_BITS)
+#define MINIX_BLOCK_SIZE (1 << MINIX_BLOCK_SIZE_BITS)
-#define NAME_MAX 255 /* # chars in a file name */
-#define MAX_INODES 65535
+#define MINIX_NAME_MAX 255 /* # chars in a file name */
+#define MINIX_MAX_INODES 65535
#define MINIX_INODES_PER_BLOCK ((MINIX_BLOCK_SIZE)/(sizeof (struct minix_inode)))
#define MINIX2_INODES_PER_BLOCK ((MINIX_BLOCK_SIZE)/(sizeof (struct minix2_inode)))
-#define MINIX_VALID_FS 0x0001 /* Clean fs. */
-#define MINIX_ERROR_FS 0x0002 /* fs has errors. */
+/* minix_super_block.s_state */
+#define MINIX_VALID_FS 0x0001 /* Clean fs. */
+#define MINIX_ERROR_FS 0x0002 /* fs has errors. */
#define MINIX_SUPER_MAGIC 0x137F /* original minix fs */
#define MINIX_SUPER_MAGIC2 0x138F /* minix fs, 30 char names */