]> git.ipfire.org Git - thirdparty/libatasmart.git/commitdiff
enable all transports
authorLennart Poettering <lennart@poettering.net>
Sun, 29 Jun 2008 03:43:54 +0000 (05:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 29 Jun 2008 03:43:54 +0000 (05:43 +0200)
smartkit.c

index 15ee25690182cd6526f9812a0c08cbd3b1f6ebba..2219cc0ffb3553e28f23531bd31eda88407cb672 100644 (file)
@@ -580,17 +580,16 @@ int sk_disk_open(const gchar *name, SkDevice **_d) {
     if ((d->fd = open(name, O_RDWR|O_NOCTTY)) < 0)
         goto fail;
 
-/*     d->type = SK_DEVICE_TYPE_ATA_PASSTHROUGH; */
-/*     if (sk_disk_identify_device(d) < 0) { */
-
-    d->type = SK_DEVICE_TYPE_ATA;
+    d->type = SK_DEVICE_TYPE_ATA_PASSTHROUGH;
     if (sk_disk_identify_device(d) < 0) {
 
-/*             d->type = SK_DEVICE_TYPE_SCSI; */
-/*             if (sk_disk_identify_device(d) < 0) { */
+        d->type = SK_DEVICE_TYPE_ATA;
+        if (sk_disk_identify_device(d) < 0) {
+
+            d->type = SK_DEVICE_TYPE_SCSI;
+            if (sk_disk_identify_device(d) < 0)
                 goto fail;
-/*             } */
-/*         } */
+        }
     }
 
     parse_identify(d->identify, serial, firmware, model);