summaryrefslogtreecommitdiff
path: root/sysutils/hal/files/patch-hald_freebsd_probing_probe-volume.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2008-04-13 23:38:02 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2008-04-13 23:38:02 +0000
commit22e5d827b5524afd1b4c9522e851f4816db7c4ab (patch)
treeadef4026e3b051174c58a164873b39a1b83895bf /sysutils/hal/files/patch-hald_freebsd_probing_probe-volume.c
parentAdd milkytracker 0.90.80, a free music creation tool inspired by Fast (diff)
* 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.
Diffstat (limited to 'sysutils/hal/files/patch-hald_freebsd_probing_probe-volume.c')
-rw-r--r--sysutils/hal/files/patch-hald_freebsd_probing_probe-volume.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysutils/hal/files/patch-hald_freebsd_probing_probe-volume.c b/sysutils/hal/files/patch-hald_freebsd_probing_probe-volume.c
new file mode 100644
index 000000000000..b9dc099e63b3
--- /dev/null
+++ b/sysutils/hal/files/patch-hald_freebsd_probing_probe-volume.c
@@ -0,0 +1,12 @@
+--- 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