Imported Upstream version 0.7.0
[platform/upstream/multipath-tools.git] / libmultipath / checkers / directio.c
index 46fe6a7..ce60e4c 100644 (file)
@@ -82,7 +82,7 @@ int libcheck_init (struct checker * c)
        ct->ptr = (unsigned char *) (((unsigned long)ct->buf + pgsize - 1) &
                  (~(pgsize - 1)));
 
-       /* Sucessfully initialized, return the context. */
+       /* Successfully initialized, return the context. */
        c->context = (void *) ct;
        return 0;
 
@@ -104,9 +104,11 @@ void libcheck_free (struct checker * c)
 
        if (ct->reset_flags) {
                if ((flags = fcntl(c->fd, F_GETFL)) >= 0) {
+                       int ret __attribute__ ((unused));
+
                        flags &= ~O_DIRECT;
                        /* No point in checking for errors */
-                       fcntl(c->fd, F_SETFL, flags);
+                       ret = fcntl(c->fd, F_SETFL, flags);
                }
        }
 
@@ -116,6 +118,11 @@ void libcheck_free (struct checker * c)
        free(ct);
 }
 
+void libcheck_repair (struct checker * c)
+{
+       return;
+}
+
 static int
 check_state(int fd, struct directio_context *ct, int sync, int timeout_secs)
 {