Whamcloud - gitweb
LU-2061 hsm: get list of HSM actions
[fs/lustre-release.git] / lustre / include / lustre / lustre_user.h
index 1e8ecca..b98c6ed 100644 (file)
@@ -163,6 +163,10 @@ struct obd_statfs {
 #define LL_IOC_HSM_PROGRESS            _IOW('f', 216, struct hsm_user_request)
 #define LL_IOC_HSM_REQUEST             _IOW('f', 217, struct hsm_user_request)
 #define LL_IOC_DATA_VERSION            _IOR('f', 218, struct ioc_data_version)
+/*     219 is reserved for swap layouts */
+#define LL_IOC_HSM_ACTION              _IOR('f', 220, \
+                                               struct hsm_current_action)
+/* see <lustre_lib.h> for ioctl numbers 221-232 */
 
 #define LL_STATFS_LMV           1
 #define LL_STATFS_LOV           2
@@ -814,6 +818,19 @@ struct hsm_state_set_ioc {
        __u64           hssi_clearmask;
 };
 
+/*
+ * This structure describes the current in-progress action for a file.
+ * it is retuned to user space and send over the wire
+ */
+struct hsm_current_action {
+       /**  The current undergoing action, if there is one */
+       /* state is one of hsm_progress_states */
+       __u32                   hca_state;
+       /* action is one of hsm_user_action */
+       __u32                   hca_action;
+       struct hsm_extent       hca_location;
+};
+
 /***** HSM user requests ******/
 /* User-generated (lfs/ioctl) request types */
 enum hsm_user_action {