Files
ports/sysutils/hal/files/patch-hald_freebsd_probing_probe-volume.c
Joe Marcus Clarke 22e5d827b5 * Do not probe disc media unless the media is known to contain data
* Be less conservation about which device nodes are mountable volumes

These patches were tested together by mezz, and individually by
Andriy Gapon and Andreas Wetzel respectively.
2008-04-13 23:38:02 +00:00

13 lines
431 B
C

--- hald/freebsd/probing/probe-volume.c.orig 2008-04-07 00:41:22.000000000 -0400
+++ hald/freebsd/probing/probe-volume.c 2008-04-07 00:43:32.000000000 -0400
@@ -502,7 +502,8 @@ main (int argc, char **argv)
hfp_cdrom_free(cdrom);
}
- if (has_data)
+ if (has_data && vid && (! strcmp(vid->type, "iso9660") ||
+ ! strcmp(vid->type, "udf")))
hf_probe_volume_advanced_disc_detect(fd);
}
else