Revert "Add override for system internal property"
authorDavid Zeuthen <davidz@redhat.com>
Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 26 Aug 2011 17:09:40 +0000 (13:09 -0400)
This reverts commit 156ebd5ca8f88b7a4772c03ed269ae30718f866d.

doc/man/udisks7.xml
src/device.c

index 4e97b28..c5d0a55 100644 (file)
         icon theme specification.
         </para></listitem>
       </varlistentry>
-
-      <varlistentry>
-        <term><option>UDISKS_SYSTEM_INTERNAL</option></term>
-        <listitem><para>If set, this will override the usual bus type based
-           detection of whether a device is considered "system internal". "0"
-           means "removable" (i. e. eligible for automounting, and normal
-           users can mount), any other value means "system internal" (i.
-           e. no automounting, and only administrators can mount).
-        </para></listitem>
-      </varlistentry>
     </variablelist>
     <para>
       The <option>ID_DRIVE_*</option> properties are used to describe what
index 22779c7..a928fb5 100644 (file)
@@ -3849,12 +3849,9 @@ static gboolean
 update_info_is_system_internal (Device *device)
 {
   gboolean is_system_internal;
-  
-  if (g_udev_device_has_property (device->priv->d, "UDISKS_SYSTEM_INTERNAL"))
-    {
-      is_system_internal = g_udev_device_get_property_as_boolean (device->priv->d, "UDISKS_SYSTEM_INTERNAL");
-      goto determined;
-    }
+
+  /* TODO: make it possible to override this property from a udev property.
+   */
 
   /* start out by assuming the device is system internal, then adjust depending on what kind of
    * device we are dealing with