.SH NAME
lfs pcc attach \- attach file to local cache filesystem
.SH SYNOPSIS
-.BR "lfs pcc attach " [ -rw "] [" --id | -i "\fIID\fR] <" \fIFILE ...>
+.BR "lfs pcc attach " [ -rw "] [" --pin|-p "] [" --async|-A "] [" --id | -i " \fIID\fR] <" \fIFILE ...>
.br
-.BR "lfs pcc attach_fid " [ -rw "] [" --id | -i "\fIID\fR] {" --mnt | -m "\fIMNTPATH\fR} <" \fIFID ...>
+.BR "lfs pcc attach_fid " [ -rw "] [" --pin|-p "] [" --async|-A "] [" --id | -i " \fIID\fR] {" --mnt | -m " \fIMNTPATH\fR} <" \fIFID ...>
.SH DESCRIPTION
Attach and copy the specified files into the persistent client cache. Use
.B lfs pcc detach
.TP
.BR --pin | -p
Pin and attach the file so that it will not be detached automatically.
+.TP
+.BR --async | -A
+Optionally, do asynchronous file attach instead of a single-threaded synchronous
+attach. In this case, the application may attach the file without waiting for it
+to be fully copied into PCC backend.
.SH EXAMPLES
.TP
.B $ lfs pcc attach -i 1 /mnt/lustre/file
Attach an existing file into PCC with archive ID 1 and copy data from Lustre
to cache device. Reads from the Lustre file will direct to the PCC-RO copy.
.TP
+.B $ lfs pcc attach -r -i 2 -A /mnt/lustre/file
+Read-only attach a existing file "/mnt/lustre/file" into PCC with archive ID 2
+in a asynchronous way. The attach process does not wait for the attaching file
+to be fully copied into PCC-RO backend. During data copy for attachment, the
+application can read data from Lustre OSTs. After finished data copy, Reads
+will direct to the PCC-RO copy.
+.TP
.B $ lfs pcc attach_fid -r -m /mnt/lustre 0x200000401:0x1:0x0
Read-only attach file referenced by FID "0x200000401:0x1:0x0" in filesystem
.B /mnt/lustre