]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libfrog: hoist bitmap out of scrub
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 26 Apr 2019 20:39:46 +0000 (15:39 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 26 Apr 2019 20:39:46 +0000 (15:39 -0500)
Move the bitmap code to libfrog so that we can use bitmaps in
xfs_repair.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
include/bitmap.h [moved from scrub/bitmap.h with 87% similarity]
libfrog/Makefile
libfrog/bitmap.c [moved from scrub/bitmap.c with 100% similarity]
scrub/Makefile

similarity index 87%
rename from scrub/bitmap.h
rename to include/bitmap.h
index e9746a124a9972c7cfee35c6a36d27faa3179007..e29a4335f3a23fa0627c409aceed976a33a141dc 100644 (file)
@@ -3,8 +3,8 @@
  * Copyright (C) 2018 Oracle.  All Rights Reserved.
  * Author: Darrick J. Wong <darrick.wong@oracle.com>
  */
-#ifndef XFS_SCRUB_BITMAP_H_
-#define XFS_SCRUB_BITMAP_H_
+#ifndef LIBFROG_BITMAP_H_
+#define LIBFROG_BITMAP_H_
 
 struct bitmap {
        pthread_mutex_t         bt_lock;
@@ -21,4 +21,4 @@ bool bitmap_test(struct bitmap *bmap, uint64_t start,
 bool bitmap_empty(struct bitmap *bmap);
 void bitmap_dump(struct bitmap *bmap);
 
-#endif /* XFS_SCRUB_BITMAP_H_ */
+#endif /* LIBFROG_BITMAP_H_ */
index dbff9596e4abf7e4e67afc3feb239a2a2c427d26..f5a0539b3f0380456a7e078a86c51c314b03d1a2 100644 (file)
@@ -12,6 +12,7 @@ LT_AGE = 0
 
 CFILES = \
 avl64.c \
+bitmap.c \
 convert.c \
 crc32.c \
 fsgeom.c \
similarity index 100%
rename from scrub/bitmap.c
rename to libfrog/bitmap.c
index 6e155c2cde0c95fa12f528575d8412833362773b..f4710d3ed3cecfa07ccd4b05d8df93f5e455c365 100644 (file)
@@ -31,7 +31,6 @@ endif
 endif  # scrub_prereqs
 
 HFILES = \
-bitmap.h \
 common.h \
 counter.h \
 disk.h \
@@ -48,7 +47,6 @@ vfs.h \
 xfs_scrub.h
 
 CFILES = \
-bitmap.c \
 common.c \
 counter.c \
 disk.c \