Whamcloud - gitweb
ChangeLog, bitmaps.c, bitops.h:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 13 Sep 1997 00:32:29 +0000 (00:32 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 13 Sep 1997 00:32:29 +0000 (00:32 +0000)
  ext2fs_set_bitmap_padding: New function which sets the padding of the
   bitmap to be all one's.

lib/ext2fs/ChangeLog
lib/ext2fs/bitmaps.c
lib/ext2fs/bitops.h

index 62ad4ad..300ecf1 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  4 12:28:22 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * bitmaps.c (ext2fs_set_bitmap_padding): New function which sets the
+               padding of the bitmap to be all one's.
+
 Wed Sep  3 14:27:30 1997  Theodore Y. Ts'o  <tytso@edt.mit.edu>
 
        * llseek.c: Added missing semicolon to glibc fixup declaration of
index 46b4ee6..1fa4a90 100644 (file)
@@ -97,6 +97,15 @@ errcode_t ext2fs_copy_bitmap(ext2fs_generic_bitmap src,
        return 0;
 }
 
+void ext2fs_set_bitmap_padding(ext2fs_generic_bitmap map)
+{
+       __u32   i, j;
+
+       for (i=map->end+1, j = i - map->start; i <= map->real_end; i++, j++)
+               ext2fs_set_bit(j, map->bitmap);
+
+       return;
+}      
 
 errcode_t ext2fs_allocate_inode_bitmap(ext2_filsys fs,
                                       const char *descr,
index a20d395..e366b3c 100644 (file)
@@ -75,6 +75,7 @@ extern void ext2fs_fast_unmark_block_bitmap_range(ext2fs_block_bitmap bitmap,
                                                  blk_t block, int num);
 extern int ext2fs_fast_test_block_bitmap_range(ext2fs_block_bitmap bitmap,
                                               blk_t block, int num);
+extern void ext2fs_set_bitmap_padding(ext2fs_generic_bitmap map);
 
 /*
  * The inline routines themselves...