1 .TH llapi_heat_get 3 "2019 Feb 09" "Lustre User API"
3 llapi_heat_get, llapi_heat_set \- get and clear heat for a file
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_heat_get(int " fd ", struct lu_heat *" heat ");"
10 .BI "int llapi_heat_set(int " fd ", __u64 " flags ");"
16 returns file access frequency information on the file descriptor
18 Information is returned in the
20 argument which should already be allocated, which is a
22 data structure, which contains the following fields:
33 mainly clears the heat information on the file descriptor
35 according to the parameter
37 which gives options for file heat, currently one of:
40 Clear the heat information for a given file.
43 Turn off the file heat support for a given file.
50 return 0 on success or a negative errno value on failure.
54 Insufficient memory to complete operation.
57 Memory region is not properly mapped.
60 One or more invalid arguments are given.
63 File heat operation is not supported.