diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-06-29 05:43:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-06-29 05:43:54 +0200 |
commit | 705f7c9b9e48d2dd0d8a406e783eb972f56d3ce3 (patch) | |
tree | b977541d5287a01fcf30fc399bec906699a4821d | |
parent | 11969f82155249b4712a3b450e52666e27b20e06 (diff) |
enable all transports
-rw-r--r-- | smartkit.c | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -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); |