Whamcloud - gitweb
LU-3867 utils: llapi_create_volatile_idx uses 0 instead idx
[fs/lustre-release.git] / lustre / include / obd.h
index fd9363e..13c6cd7 100644 (file)
@@ -1590,7 +1590,7 @@ static inline bool filename_is_volatile(const char *name, int namelen, int *idx)
        }
        /* we have an idx, read it */
        start = name + LUSTRE_VOLATILE_HDR_LEN + 1;
-       *idx = strtoul(start, &end, 0);
+       *idx = strtoul(start, &end, 16);
        /* error cases:
         * no digit, no trailing :, negative value
         */