[gvfs/wip/udisks2] Use Block:HintAuto instead of Drive:Removable to determine automount



commit e3abfad8bfcecedf266ab878e20455929215929b
Author: David Zeuthen <davidz redhat com>
Date:   Fri Jan 20 12:26:01 2012 -0500

    Use Block:HintAuto instead of Drive:Removable to determine automount
    
    This makes it possible to override with the UDISKS_AUTO property.
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 monitor/udisks2/gvfsudisks2volume.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2volume.c b/monitor/udisks2/gvfsudisks2volume.c
index 49f34aa..50492fa 100644
--- a/monitor/udisks2/gvfsudisks2volume.c
+++ b/monitor/udisks2/gvfsudisks2volume.c
@@ -324,7 +324,7 @@ update_volume (GVfsUDisks2Volume *volume)
            *
            * Fortunately udisks provides a property just for this.
            */
-          if (udisks_drive_get_removable (udisks_drive))
+          if (udisks_block_get_hint_auto (volume->block))
             {
               /* Also, if a volume (partition) appear _much later_ than when media was inserted it
                * can only be because the media was repartitioned. We don't want to automount



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]