9 :Author: Lustre contributors
12 :Manual group: The Lustre API library
17 **#include <lustre/lustreapi.h>**
22 The lustreapi library provides functions to access and/or modify
23 settings specific to the Lustre filesystem (allocation policies,
26 The library provides the following functions:
30 int llapi_hsm_copytool_register(struct hsm_copytool_private \*\*priv,
31 const char \*mnt, int archive_count, int \*archives,
34 int llapi_hsm_copytool_unregister(struct hsm_copytool_private \*\*priv)
36 int llapi_hsm_copytool_get_fd(struct hsm_copytool_private \*ct)
38 int llapi_hsm_copytool_recv(struct hsm_copytool_private \*priv,
39 struct hsm_action_list \*\*hal, int \*msgsize)
41 struct hsm_action_item \*hai_first(struct hsm_action_list \*hal)
43 struct hsm_action_item \*hai_next(struct hsm_action_item \*hai)
45 int llapi_hsm_action_begin(struct hsm_copyaction_private \*\*phcp,
46 const struct hsm_copytool_private \*ct, const struct
47 hsm_action_item \*hai, int restore_mdt_index, int
48 restore_open_flags, bool is_error)
50 int llapi_hsm_action_end(struct hsm_copyaction_private \*\*phcp,
51 const struct hsm_extent \*he, int hp_flags, int errval)
53 int llapi_hsm_action_progress(struct hsm_copyaction_private \*hcp,
54 const struct hsm_extent \*he, __u64 total, int hp_flags)
56 int llapi_hsm_action_get_dfid(const struct hsm_copyaction_private \*hcp,
59 int llapi_hsm_action_get_fd(const struct hsm_copyaction_private \*hcp)
66 **llapi_file_create**\ (3),
67 **llapi_file_open**\ (3),
68 **llapi_file_get_stripe**\ (3),
69 **llapi_layout**\ (3),
70 **llapi_quotactl**\ (3),
71 **llapi_hsm_state_get**\ (3),
72 **llapi_hsm_state_set**\ (3)