L4Re/departure

Annotated libext2fs/NOTE.txt

391:bc65615a8fed
2022-06-30 Paul Boddie Added missing structure members. mmap-region-flags
paul@212 1
Use get_config on a configured Debian build to get a suitable config.h:
paul@212 2
paul@212 3
./get_config ~/Debian/e2fsprogs-1.46.2 > lib/config.h
paul@212 4
paul@212 5
An apparently usable configuration of a Debian build:
paul@212 6
paul@212 7
./configure --disable-debugfs --disable-imager --disable-resizer \
paul@212 8
            --disable-defrag --disable-uuidd --disable-mmp --disable-tdb \
paul@212 9
            --disable-bmap-stats --disable-nls --disable-fuse2fs \
paul@212 10
            --enable-libuuid --enable-libblkid
paul@212 11
paul@212 12
To make sure that some files are generated, build the software:
paul@212 13
paul@212 14
make
paul@212 15
paul@212 16
Source and header files are then copied from the following directories in the
paul@212 17
e2fsprogs distribution:
paul@212 18
paul@212 19
version.h -> lib
paul@212 20
lib/dirpath.h -> lib
paul@212 21
paul@212 22
lib/blkid -> lib/libblkid
paul@212 23
lib/blkid/blkid.h -> include/libblkid/blkid/blkid.h
paul@212 24
lib/blkid/blkid_types.h -> include/libblkid/blkid/blkid_types.h
paul@212 25
paul@212 26
In blkid, the following files should be excluded:
paul@212 27
paul@212 28
tst_types.c
paul@212 29
paul@212 30
lib/e2p -> lib/libe2p
paul@212 31
lib/e2p/e2p.h -> include/libe2p/e2p/e2p.h
paul@212 32
paul@212 33
lib/et -> lib/libet
paul@212 34
lib/et/com_error.h -> include/libet/et/com_error.h
paul@212 35
paul@212 36
lib/ext2fs -> lib/libext2fs
paul@212 37
lib/ext2fs/ext*.h -> include/libext2fs/ext2fs
paul@212 38
lib/ext2fs/bitops.h -> include/libext2fs/ext2fs
paul@212 39
lib/ext2fs/hashmap.h -> include/libext2fs/ext2fs
paul@212 40
lib/ext2fs/kernel-jbd.h -> include/libext2fs/ext2fs
paul@212 41
paul@212 42
In ext2fs, the following files should be excluded:
paul@212 43
paul@212 44
bmove.c
paul@212 45
dosio.*
paul@212 46
icount.c
paul@212 47
imager.c
paul@212 48
irel_ma.c
paul@212 49
nt_io.c
paul@212 50
qcow2.*
paul@212 51
sparse_io.c
paul@212 52
tdb*
paul@212 53
test_io.c
paul@212 54
tst_*.c
paul@212 55
undo_io.c
paul@212 56
version.c
paul@212 57
paul@212 58
Here, version.c is excluded since it generally does not change and any new
paul@212 59
version will break the include statement in the file.
paul@212 60
paul@212 61
lib/support -> lib/libsupport
paul@212 62
lib/support/quotaio.h -> include/libsupport/support/quotaio.h
paul@212 63
lib/support/sort_r.h -> include/libsupport/support/sort_r.h
paul@212 64
paul@212 65
To generate a configuration:
paul@212 66
paul@212 67
tools/make_config .../e2fsprogs-x.y.z/lib/config.h