Require latest libatasmart
authorDavid Zeuthen <davidz@redhat.com>
Sun, 9 Aug 2009 22:07:53 +0000 (18:07 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sun, 9 Aug 2009 22:07:53 +0000 (18:07 -0400)
This version of libatasmart has a new ABI/API with new features. We
won't initially take advantage of these new features so just do a
simple port for now.

configure.ac
src/devkit-disks-device.c

index cdd2f4e..756e51e 100644 (file)
@@ -170,7 +170,7 @@ PKG_CHECK_MODULES(DEVMAPPER, [devmapper >= 1.02])
 AC_SUBST(DEVMAPPER_CFLAGS)
 AC_SUBST(DEVMAPPER_LIBS)
 
-PKG_CHECK_MODULES(LIBATASMART, [libatasmart >= 0.5])
+PKG_CHECK_MODULES(LIBATASMART, [libatasmart >= 0.14])
 AC_SUBST(LIBATASMART_CFLAGS)
 AC_SUBST(LIBATASMART_LIBS)
 
index 000ba5a..17ed671 100644 (file)
@@ -7752,14 +7752,14 @@ ata_smart_collect_attrs (SkDisk *d, const SkSmartAttributeParsedData *a, void *u
                                 8, a->worst_value_valid,
                                 9, a->threshold,
                                 10, a->threshold_valid,
-                                11, a->good,
-                                12, a->good_valid,
+                                11, a->good_now,
+                                12, a->good_now_valid,
                                 13, a->pretty_unit,
                                 14, a->pretty_value,
                                 15, raw_data,
                                 G_MAXUINT);
 
-        if (!a->good && a->good_valid && a->prefailure)
+        if (!a->good_now && a->good_now_valid && a->prefailure)
                 data->has_bad_attributes = TRUE;
 
         g_ptr_array_add (data->attributes, g_value_get_boxed (&elem));