cd0fe5c165
It seems that blkid_do_probe() is too high-level solution for some mkfs programs (for example ext4 mkfs supports "undo" so all write operations has to be implemented by filesystem specific functions). The new function blkid_probe_step_back() resets internal libblkid buffers and move probing stuff one step back. It means that the previously used probing function will be called again in the next blkid_do_probe() call. This allows to modify on-disk data and check for backup superblocks or alternative magic strings. Something like: while (blkid_do_probe(pr) == 0) { ... get SBMAGIC_OFFSET and SBMAGIC len ... ... use your private seek & write() ... blkid_probe_step_back(pr); } References: https://bugzilla.redhat.com/show_bug.cgi?id=902512 Signed-off-by: Karel Zak <kzak@redhat.com> |
||
---|---|---|
Documentation | ||
config | ||
disk-utils | ||
fdisks | ||
include | ||
lib | ||
libblkid | ||
libmount | ||
libuuid | ||
login-utils | ||
m4 | ||
misc-utils | ||
mount-deprecated | ||
po | ||
schedutils | ||
sys-utils | ||
term-utils | ||
tests | ||
text-utils | ||
tools | ||
.gitignore | ||
AUTHORS | ||
COPYING | ||
ChangeLog | ||
Makefile.am | ||
NEWS | ||
README | ||
README.licensing | ||
autogen.sh | ||
configure.ac |
README
util-linux util-linux is a random collection of Linux utilities Note that in years 2006-2010 this project used the name "util-linux-ng". MAILING LIST: E-MAIL: util-linux@vger.kernel.org URL: http://vger.kernel.org/vger-lists.html#util-linux DOWNLOAD: ftp://ftp.kernel.org/pub/linux/utils/util-linux/ SOURCE CODE: Web interface: http://git.kernel.org/?p=utils/util-linux/util-linux.git https://github.com/karelzak/util-linux Checkout: git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux NLS (PO TRANSLATIONS): PO files are maintained by: http://translationproject.org/domain/util-linux.html VERSION SCHEMA: Standard releases: <major>.<minor>[.<maint>[.<bugfix>]] major = fatal and deep changes minor = typical release with new features maint = maintenance releases; bug fixes only bugfix = unplanned releases for critical/security bugs Development releases: <major>.<minor>-rc<N>