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

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


Updating branch refs/heads/master
         to ac57b8a8e7011bab0919fb7717188bdbf3be1c27 (commit)
       from 67ea5cb9179074747533e6055b4b8195efa0db39 (commit)

commit ac57b8a8e7011bab0919fb7717188bdbf3be1c27
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 a398d2e..6344864 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