* we do not return a probing result.
*
* We can not afford to mount a volume with the wrong filesystem code and
* we do not return a probing result.
*
* We can not afford to mount a volume with the wrong filesystem code and
* to make the filesystem detection successful.
*
* We do not want to read that many bytes from probed floppies, skip volumes
* to make the filesystem detection successful.
*
* We do not want to read that many bytes from probed floppies, skip volumes
for (i = 0; i < ARRAY_SIZE(prober_filesystem); i++) {
int match;
match = (prober_filesystem[i].prober(id, off, size) == 0);
if (match) {
for (i = 0; i < ARRAY_SIZE(prober_filesystem); i++) {
int match;
match = (prober_filesystem[i].prober(id, off, size) == 0);
if (match) {
if (found && force_unique_result) {
info("conflicting signatures found, skip results\n");
return -1;
}
if (found && force_unique_result) {
info("conflicting signatures found, skip results\n");
return -1;
}
+ if (found < 1)
+ return -1;
+ if (found == 1)
+ goto found;
+ if (found > 1) {
+ volume_id_reset_result(id);
+ info("re-read first match metadata %i\n", first_match);
+ if (prober_filesystem[first_match].prober(id, off, size) == 0)
+ goto found;
+ return -1;
+ }
for (i = 0; i < ARRAY_SIZE(prober_filesystem); i++) {
if (prober_filesystem[i].prober(id, off, size) == 0) {
info("signature '%s' detected\n", id->type);
for (i = 0; i < ARRAY_SIZE(prober_filesystem); i++) {
if (prober_filesystem[i].prober(id, off, size) == 0) {
info("signature '%s' detected\n", id->type);