mirror of
https://github.com/upa/mscp.git
synced 2026-02-14 17:24:42 +08:00
little refactoring for param names
This commit is contained in:
12
src/file.h
12
src/file.h
@@ -12,12 +12,12 @@
|
||||
struct file {
|
||||
struct list_head list; /* sscp->file_list */
|
||||
|
||||
char path[PATH_MAX]; /* copy source path */
|
||||
bool remote; /* source is remote */
|
||||
size_t size; /* size of this file */
|
||||
char src_path[PATH_MAX]; /* copy source path */
|
||||
bool src_is_remote; /* source is remote */
|
||||
size_t size; /* size of this file */
|
||||
|
||||
char dst_path[PATH_MAX]; /* copy destination path */
|
||||
bool dst_remote; /* destination is remote */
|
||||
char dst_path[PATH_MAX]; /* copy destination path */
|
||||
bool dst_is_remote; /* destination is remote */
|
||||
|
||||
int state; /* destination file state */
|
||||
lock lock; /* mutex to protect state */
|
||||
@@ -27,6 +27,8 @@ struct file {
|
||||
#define FILE_STATE_OPENED 1
|
||||
#define FILE_STATE_DONE 2
|
||||
|
||||
#define strloc(is_remote) is_remote ? "(remote)" : "(local)"
|
||||
|
||||
/* Allocating chunk increments refcnt of the associating file.
|
||||
* Multiple threads copying files follows:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user