summaryrefslogtreecommitdiff
path: root/lib/ext2fs/ext2fs.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-12-24 15:20:22 -0500
committerTheodore Ts'o <tytso@mit.edu>2001-12-24 15:20:22 -0500
commit07cefe7a7051e32f14b93d9003a6dbb308597bd3 (patch)
tree63a750c88c8031edca5051faa64d9eb86d922cdd /lib/ext2fs/ext2fs.h
parent3ed57c27df0ba0942a19c71bc065c8eec3036567 (diff)
downloade2fsprogs-07cefe7a7051e32f14b93d9003a6dbb308597bd3.tar.gz
ismounted.c (is_swap_device): New function used by
ext2fs_check_if_mounted and ext2fs_check_mount_point which determines whether or not the specified device is a swap device by using /proc/swaps. More bulletproofing for idiotic/careless system administrators!
Diffstat (limited to 'lib/ext2fs/ext2fs.h')
-rw-r--r--lib/ext2fs/ext2fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h
index 4b594fdd..3ddd4528 100644
--- a/lib/ext2fs/ext2fs.h
+++ b/lib/ext2fs/ext2fs.h
@@ -325,6 +325,7 @@ typedef struct ext2_struct_inode_scan *ext2_inode_scan;
#define EXT2_MF_MOUNTED 1
#define EXT2_MF_ISROOT 2
#define EXT2_MF_READONLY 4
+#define EXT2_MF_SWAP 8
/*
* Ext2/linux mode flags. We define them here so that we don't need