summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorKarel Zak2013-02-04 11:28:09 +0100
committerKarel Zak2013-02-04 11:28:09 +0100
commitcd0fe5c1659d4144610ffd76500002e98b873e0b (patch)
tree889cb6f7bd291fbc3b6eb0e690af826fa2288224 /.gitignore
parentnewgrp: more robust crypt() usage (diff)
downloadkernel-qcow2-util-linux-cd0fe5c1659d4144610ffd76500002e98b873e0b.tar.gz
kernel-qcow2-util-linux-cd0fe5c1659d4144610ffd76500002e98b873e0b.tar.xz
kernel-qcow2-util-linux-cd0fe5c1659d4144610ffd76500002e98b873e0b.zip
libblkid: add blkid_probe_step_back()
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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions