1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-25 14:42:52 +00:00

Check repo space when copy or move files.

This commit is contained in:
ly1217
2019-07-06 03:00:09 -07:00
parent b94cb65263
commit 87d952b7c2
5 changed files with 176 additions and 54 deletions

View File

@@ -3,6 +3,12 @@
#include <glib.h>
#define COPY_ERR_INTERNAL "Internal error when copy or move"
#define COPY_ERR_BAD_ARG "Invalid arguments"
#define COPY_ERR_TOO_MANY_FILES "Too many files"
#define COPY_ERR_SIZE_TOO_LARGE "Folder or file size is too large"
#define COPY_ERR_QUOTA_IS_FULL "Quota is full"
struct _SeafileSession;
struct _SeafCopyManagerPriv;
struct _SeafileCopyTask;
@@ -23,6 +29,7 @@ struct CopyTask {
gint64 total;
gint canceled;
gboolean failed;
char *failed_reason;
gboolean successful;
};
typedef struct CopyTask CopyTask;