1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/libext2fs/NOTE.txt Sat Oct 09 23:28:01 2021 +0200
1.3 @@ -0,0 +1,67 @@
1.4 +Use get_config on a configured Debian build to get a suitable config.h:
1.5 +
1.6 +./get_config ~/Debian/e2fsprogs-1.46.2 > lib/config.h
1.7 +
1.8 +An apparently usable configuration of a Debian build:
1.9 +
1.10 +./configure --disable-debugfs --disable-imager --disable-resizer \
1.11 + --disable-defrag --disable-uuidd --disable-mmp --disable-tdb \
1.12 + --disable-bmap-stats --disable-nls --disable-fuse2fs \
1.13 + --enable-libuuid --enable-libblkid
1.14 +
1.15 +To make sure that some files are generated, build the software:
1.16 +
1.17 +make
1.18 +
1.19 +Source and header files are then copied from the following directories in the
1.20 +e2fsprogs distribution:
1.21 +
1.22 +version.h -> lib
1.23 +lib/dirpath.h -> lib
1.24 +
1.25 +lib/blkid -> lib/libblkid
1.26 +lib/blkid/blkid.h -> include/libblkid/blkid/blkid.h
1.27 +lib/blkid/blkid_types.h -> include/libblkid/blkid/blkid_types.h
1.28 +
1.29 +In blkid, the following files should be excluded:
1.30 +
1.31 +tst_types.c
1.32 +
1.33 +lib/e2p -> lib/libe2p
1.34 +lib/e2p/e2p.h -> include/libe2p/e2p/e2p.h
1.35 +
1.36 +lib/et -> lib/libet
1.37 +lib/et/com_error.h -> include/libet/et/com_error.h
1.38 +
1.39 +lib/ext2fs -> lib/libext2fs
1.40 +lib/ext2fs/ext*.h -> include/libext2fs/ext2fs
1.41 +lib/ext2fs/bitops.h -> include/libext2fs/ext2fs
1.42 +lib/ext2fs/hashmap.h -> include/libext2fs/ext2fs
1.43 +lib/ext2fs/kernel-jbd.h -> include/libext2fs/ext2fs
1.44 +
1.45 +In ext2fs, the following files should be excluded:
1.46 +
1.47 +bmove.c
1.48 +dosio.*
1.49 +icount.c
1.50 +imager.c
1.51 +irel_ma.c
1.52 +nt_io.c
1.53 +qcow2.*
1.54 +sparse_io.c
1.55 +tdb*
1.56 +test_io.c
1.57 +tst_*.c
1.58 +undo_io.c
1.59 +version.c
1.60 +
1.61 +Here, version.c is excluded since it generally does not change and any new
1.62 +version will break the include statement in the file.
1.63 +
1.64 +lib/support -> lib/libsupport
1.65 +lib/support/quotaio.h -> include/libsupport/support/quotaio.h
1.66 +lib/support/sort_r.h -> include/libsupport/support/sort_r.h
1.67 +
1.68 +To generate a configuration:
1.69 +
1.70 +tools/make_config .../e2fsprogs-x.y.z/lib/config.h