public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in sys-fs/udisks/files: udisks-1.0.1-no-floppy.patch
@ 2010-08-21  9:17 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2010-08-21  9:17 UTC (permalink / raw
  To: gentoo-commits

ssuominen    10/08/21 09:17:06

  Added:                udisks-1.0.1-no-floppy.patch
  Log:
  Fix long hangs on probing nonexistant floppies.
  (Portage version: 2.2_rc67/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  sys-fs/udisks/files/udisks-1.0.1-no-floppy.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udisks/files/udisks-1.0.1-no-floppy.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/udisks/files/udisks-1.0.1-no-floppy.patch?rev=1.1&content-type=text/plain

Index: udisks-1.0.1-no-floppy.patch
===================================================================
From ca93d4e2d9e7f483b2fde1725da086e2cca44164 Mon Sep 17 00:00:00 2001
From: Martin Pitt <martin.pitt@ubuntu.com>
Date: Wed, 02 Jun 2010 13:56:07 +0000
Subject: Fix long hangs on probing nonexistant floppy drives

A lot of modern machines do not have a floppy drive any more, but still have a
floppy controller somewhere (or at least the BIOS pretends to). Trying to
open(/dev/fd0) on these machines causes long hangs, which lead to long desktop
startup times.

To fix this, avoid probing floppies for media in update_info().

https://launchpad.net/bugs/539515
---
diff --git a/src/device.c b/src/device.c
index 763385c..0e87f1d 100644
--- a/src/device.c
+++ b/src/device.c
@@ -4471,7 +4471,8 @@ update_info (Device *device)
     {
       media_available = FALSE;
 
-      if (!g_udev_device_get_property_as_boolean (device->priv->d, "ID_CDROM"))
+      if (!g_udev_device_get_property_as_boolean (device->priv->d, "ID_CDROM") &&
+          !g_udev_device_get_property_as_boolean (device->priv->d, "ID_DRIVE_FLOPPY"))
         {
           int fd;
           fd = open (device->priv->device_file, O_RDONLY);
--
cgit v0.8.3-6-g21f6






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in sys-fs/udisks/files: udisks-1.0.1-no-floppy.patch
@ 2010-12-12 17:30 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2010-12-12 17:30 UTC (permalink / raw
  To: gentoo-commits

ssuominen    10/12/12 17:30:22

  Removed:              udisks-1.0.1-no-floppy.patch
  Log:
  old
  
  (Portage version: 2.2.0_alpha6/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-12 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-12 17:30 [gentoo-commits] gentoo-x86 commit in sys-fs/udisks/files: udisks-1.0.1-no-floppy.patch Samuli Suominen (ssuominen)
  -- strict thread matches above, loose matches on Subject: below --
2010-08-21  9:17 Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox