Re: Lib and Src directory
Ondrej Kozina <[email protected]>
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <[email protected]> |
On 04. 04. 22 10:46, Surmont Jasper wrote: > Hey, newbie question here: > > What is the interpretation between the src/ and lib/ directory? The /lib directory contains source code for libcryptsetup library. The /src contains sources for all cryptsetup project maintained command line utilities: cryptsetup, integritysetup and veritysetup. > For example, I see files like integrity.c or verity.c etc. Are these files also files written for the cryptsetup project, > or do these contain the same code that can be found in the linux kernel /drivers/md/dm-integrity.c for example? Yes. It's internal libcryptsetup code. For example the integrity.c in lib/integrity directory contains code for managing dm-integrity kernel driver (DM target). The low level access to DM kernel drivers is done via the libdevmapper library which the libcryptsetup links with. Libdevmapper is maintained by lvm2 project. Regards O.