extern int llapi_target_check(int num_types, char **obd_types, char *dir);
extern int llapi_catinfo(char *dir, char *keyword, char *node_name);
extern int llapi_file_get_lov_uuid(const char *path, struct obd_uuid *lov_uuid);
+extern int llapi_file_fget_lov_uuid(int fd, struct obd_uuid *lov_uuid);
+/* Use llapi_file_fget_lov_uuid() instead of llapi_file_get_lov_fuuid(), the
+ * latter is deprecated and will be removed in a later Lustre release. */
extern int llapi_file_get_lov_fuuid(int fd, struct obd_uuid *lov_uuid);
extern int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count);
extern int llapi_is_lustre_mnttype(const char *type);
free(param->lmd);
}
-int llapi_file_get_lov_fuuid(int fd, struct obd_uuid *lov_name)
+int llapi_file_fget_lov_uuid(int fd, struct obd_uuid *lov_name)
{
int rc = ioctl(fd, OBD_IOC_GETNAME, lov_name);
if (rc) {
return rc;
}
+/* deprecated in favour of llapi_file_fget_lov_uuid() in 1.8 and 2.0 */
+int llapi_file_get_lov_fuuid(int fd, struct obd_uuid *lov_name)
+{
+ return llapi_file_fget_lov_uuid(fd, lov_name);
+}
+
int llapi_file_get_lov_uuid(const char *path, struct obd_uuid *lov_uuid)
{
int fd, rc;
return rc;
}
- rc = llapi_file_get_lov_fuuid(fd, lov_uuid);
+ rc = llapi_file_fget_lov_uuid(fd, lov_uuid);
close(fd);
int rc = 0, index = 0;
/* Get the lov name */
- rc = llapi_file_get_lov_fuuid(fd, &lov_name);
+ rc = llapi_file_fget_lov_uuid(fd, &lov_name);
if (rc)
return rc;
int rc = 0, index;
/* Get the lov name */
- rc = llapi_file_get_lov_fuuid(dirfd(dir), &lov_uuid);
+ rc = llapi_file_fget_lov_uuid(dirfd(dir), &lov_uuid);
if (rc) {
if (errno != ENOTTY) {
rc = errno;