[Xfce4-commits] <exo:xfce-4.6> Only sync devices with no volume.

Nick Schermer noreply at xfce.org
Sun Oct 18 22:54:02 CEST 2009


Updating branch refs/heads/xfce-4.6
         to 7aad4f152380e1d2edffdc9a2eb15554f042fbad (commit)
       from 3fab326adfb71295558e22528f24a0ad331635bc (commit)

commit 7aad4f152380e1d2edffdc9a2eb15554f042fbad
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Oct 19 00:47:32 2009 +0200

    Only sync devices with no volume.
    
    If the devices is pollable and we set the sync option, this
    will slowdown the transfer. I missed that when changing the
    code.

 exo-mount/exo-mount-hal.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/exo-mount/exo-mount-hal.c b/exo-mount/exo-mount-hal.c
index bbf9ca3..d09d0db 100644
--- a/exo-mount/exo-mount-hal.c
+++ b/exo-mount/exo-mount-hal.c
@@ -741,7 +741,8 @@ exo_mount_hal_device_mount (ExoMountHalDevice *device,
         {
           option = NULL;
 
-          if (strcmp (device->fsoptions[m], "sync") == 0)
+          if (strcmp (device->fsoptions[m], "sync") == 0
+              && device->volume == NULL)
             {
               /* non-pollable drive... */
               option = g_strdup ("sync");



More information about the Xfce4-commits mailing list