1 .TH llapi_pcc_detach_fid_fd 3 "2019 April 20" "Lustre User API"
3 llapi_pcc_detach_fid_fd, llapi_pcc_detach_fid, llapi_pcc_detach_fid_str,
4 llapi_pcc_detach_file \- detach the given file from PCC
7 .B #include <lustre/lustreapi.h>
9 .BI "int llapi_pcc_detach_fid_fd(int " dirfd ", const struct lu_fid *" fid ",
10 .BI " __u32 " flags );
12 .BI "int llapi_pcc_detach_fid(const char *" mntpath ",
13 .BI " const struct lu_fid *" fid ", __u32 " flags );
15 .BI "int llapi_pcc_detach_fid_str(const char *" mntpath ",
16 .BI " const char *" fidstr ", __u32 " flags );
18 .BI "int llapi_pcc_detach_file(const char *" path ", __u32 " flags );
22 .BR llapi_pcc_detach_fid_fd() ,
23 .BR llapi_pcc_detach_fid() ,
24 .BR llapi_pcc_detach_fid_str() ,
26 .BR llapi_pcc_detach_file()
27 detach a cached file from PCC by an ioctl on the dir or the file itself. The
34 The dir, which usually a mount point dir that the copytool already has opened,
39 The detach flags is specified by
42 .B enum lu_pcc_detach_flags
43 data structure, which contains the following values:
46 PCC_DETACH_FL_NONE = 0x0,
47 PCC_DETACH_FL_UNCACHE = 0x01,
48 PCC_DETACH_FL_KNOWN_READWRITE = 0x02,
49 PCC_DETACH_FL_KNOWN_READONLY = 0x04,
50 PCC_DETACH_FL_CACHE_REMOVED = 0x08,
54 means that detach the file from PCC yet retain the data copy on PCC backend.
57 means that remove the PCC copy after detach.
59 PCC_DETACH_KNOWN_READWRITE
60 means that it is known that the file was once cached as PCC-RW.
62 PCC_DETACH_KNOWN_READONLY
63 means that it is known that the file was once cached as PCC-RO.
65 PCC_DETACH_FL_CACHE_REMOVED
66 indicates that PCC cached copy is removed. It is used to tell the user space
67 caller that the file is detached and the corresponding PCC copy is removed.
70 .BR llapi_pcc_detach_fid_fd() ,
71 .BR llapi_pcc_detach_fid() ,
72 .BR llapi_pcc_detach_fid_str() ,
74 .B llapi_pcc_detach_file()
75 return 0 on success or a negative errno value on failure.
79 Insufficient memory to complete operation.
82 Memory region is not properly mapped.
85 One or more invalid arguments are given.
88 PCC state operation is not supported.
91 File does not reside on a Lustre filesystem.
97 .BR llapi_pcc_attach (3),