liblockdev seems like a really good idea, which we're considering adding to LSB (although the library function names may get changed along the way so they all have the same prefix).
Is there a reason that no Debian packages are using it? Package: liblockdev0g Version: 0.11.1 Architecture: i386 Depends: libc6 (>= 2.1) Conflicts: liblockdev0 Replaces: liblockdev0 Installed-Size: 24 Maintainer: Fabrizio Polacco <[EMAIL PROTECTED]> Source: lockdev Description: Run-time shared library (libc6) for locking devices. It provides a reliable way to put an exclusive lock to devices using _both_ FSSTND and SVr4 methods.