OSDN Git Service

ChangeLog, ext2fs.h:
authorTheodore Ts'o <tytso@mit.edu>
Fri, 11 Feb 2000 15:44:08 +0000 (15:44 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 11 Feb 2000 15:44:08 +0000 (15:44 +0000)
  ext2fs.h: Define EXT2FS_COMPRESSED_BLKADDR and HOLE_BLKADDR.
   Conditionally include Compression as a supported type if
   ENABLE_COMPRESSION (via --enable-compression) is turned on.

lib/ext2fs/ChangeLog
lib/ext2fs/ext2fs.h

index c53af80..0653db8 100644 (file)
@@ -1,5 +1,9 @@
 2000-02-11    <tytso@snap.thunk.org>
 
+       * ext2fs.h: Define EXT2FS_COMPRESSED_BLKADDR and HOLE_BLKADDR.
+               Conditionally include Compression as a supported type if
+               ENABLE_COMPRESSION (via --enable-compression) is turned on.
+
        * swapfs.c (ext2fs_swap_super): Swap the compression usage bitmap.
 
 2000-02-08    <tytso@snap.thunk.org>
index aef2a7c..489fc50 100644 (file)
@@ -435,6 +435,9 @@ struct ext2fs_sb {
        __u32   s_reserved[199];        /* Padding to the end of the block */
 };
 
+#define EXT2FS_COMPRESSED_BLKADDR ((blk_t) 0xffffffff)
+#define HOLE_BLKADDR(_b) ((_b) == 0 || (_b) == EXT2FS_COMPRESSED_BLKADDR)
+
 /*
  * Feature set definitions (that might not be in ext2_fs.h
  */
@@ -480,7 +483,14 @@ struct ext2fs_sb {
 #define EXT2_LIB_FEATURE_COMPAT_SUPP   (EXT2_FEATURE_COMPAT_DIR_PREALLOC|\
                                         EXT2_FEATURE_COMPAT_IMAGIC_INODES|\
                                         EXT3_FEATURE_COMPAT_HAS_JOURNAL)
+/* This #ifdef is temporary until compression is fully supported */
+#ifdef ENABLE_COMPRESSION
+#warning "Compression support is experimental"
+#define EXT2_LIB_FEATURE_INCOMPAT_SUPP (EXT2_FEATURE_INCOMPAT_FILETYPE|\
+                                        EXT2_FEATURE_INCOMPAT_COMPRESSION)
+#else
 #define EXT2_LIB_FEATURE_INCOMPAT_SUPP EXT2_FEATURE_INCOMPAT_FILETYPE
+#endif
 #define EXT2_LIB_FEATURE_RO_COMPAT_SUPP        (EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER|\
                                         EXT2_FEATURE_RO_COMPAT_LARGE_FILE)
 /*