blkid: add new return code 8 for ambivalent low-level probing result
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
c38b4ebb0e
commit
68c88d942f
|
@ -253,9 +253,15 @@ appear in
|
||||||
are shown, if they are recognized.
|
are shown, if they are recognized.
|
||||||
.SH "RETURN CODE"
|
.SH "RETURN CODE"
|
||||||
If the specified token was found, or if any tags were shown from (specified)
|
If the specified token was found, or if any tags were shown from (specified)
|
||||||
devices, 0 is returned. If the specified token was not found, or no
|
devices, 0 is returned.
|
||||||
(specified) devices could be identified, an exit code of 2 is returned.
|
|
||||||
|
If the specified token was not found, or no (specified) devices could be
|
||||||
|
identified an exit code of 2 is returned.
|
||||||
|
|
||||||
For usage or other errors, an exit code of 4 is returned.
|
For usage or other errors, an exit code of 4 is returned.
|
||||||
|
|
||||||
|
If the ambivalent low-level probing result was detected an exit code of 8 is
|
||||||
|
returned.
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
.B blkid
|
.B blkid
|
||||||
was written by Andreas Dilger for libblkid and improved by Theodore Ts'o
|
was written by Andreas Dilger for libblkid and improved by Theodore Ts'o
|
||||||
|
|
|
@ -565,7 +565,13 @@ done:
|
||||||
devname);
|
devname);
|
||||||
}
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
return !nvals ? 2 : 0;
|
|
||||||
|
if (rc == -2)
|
||||||
|
return 8; /* ambivalent probing result */
|
||||||
|
if (!nvals)
|
||||||
|
return 2; /* nothing detected */
|
||||||
|
|
||||||
|
return 0; /* sucess */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* converts comma separated list to BLKID_USAGE_* mask */
|
/* converts comma separated list to BLKID_USAGE_* mask */
|
||||||
|
|
Loading…
Reference in New Issue