1 .TH llapi_pcc_attach 3 "2019 April 20" "Lustre User API"
3 llapi_pcc_attach \- attach a file into PCC
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_pcc_attach(const char *" path ", __u32 " id ,
9 .BI " enum lu_pcc_type " type ");"
15 tries to attach the file referenced by
17 into PCC backend. PCC provides a group of local caches and works in two modes:
18 RW-PCC enables a read-write cache on the local SSDs of a single client; RO-PCC
19 provides a read-only cache on the local SSDs of multiple clients. For RW-PCC,
22 is the archive ID of the copytool agent running on this client. By default,
23 RO-PCC attach ID is setting same with RW-PCC attach ID for a PCC backend if it
24 is also used as read-only caching. The attach mode is specified by
28 data structure, which contains the following values:
37 menas that the file is not cached on PCC.
47 return 0 on success or a negative errno value on failure.
51 Insufficient memory to complete operation.
54 Memory region is not properly mapped.
57 One or more invalid arguments are given.
60 PCC attach operation is not supported.