]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - libblkid/src/evaluate.c
libblkid: open device in nonblock mode.
[thirdparty/util-linux.git] / libblkid / src / evaluate.c
index 51e5b058db1d0c3e1f4a2f665d4520eeb588d6e3..8ba8bd5f372b3a87c96af6634388caa4aa544b87 100644 (file)
@@ -70,7 +70,7 @@ static int verify_tag(const char *devname, const char *name, const char *value)
        blkid_probe_enable_partitions(pr, TRUE);
        blkid_probe_set_partitions_flags(pr, BLKID_PARTS_ENTRY_DETAILS);
 
-       fd = open(devname, O_RDONLY|O_CLOEXEC);
+       fd = open(devname, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
        if (fd < 0) {
                errsv = errno;
                goto done;