diff options
Diffstat (limited to 'xlators/storage/bd/src/bd.h')
-rw-r--r-- | xlators/storage/bd/src/bd.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xlators/storage/bd/src/bd.h b/xlators/storage/bd/src/bd.h index 34b4c9e2226..f59bc6a09ed 100644 --- a/xlators/storage/bd/src/bd.h +++ b/xlators/storage/bd/src/bd.h @@ -51,6 +51,7 @@ #define BD_CAPS_THIN 0x02 #define BD_CAPS_OFFLOAD_COPY 0x04 #define BD_CAPS_OFFLOAD_SNAPSHOT 0x08 +#define BD_CAPS_OFFLOAD_ZERO 0x20 #define BD_CLONE "clone" #define BD_SNAPSHOT "snapshot" @@ -61,9 +62,11 @@ #define IOV_SIZE (64 * 1024) #define ALIGN_SIZE 4096 - #define LINKTO "trusted.glusterfs.dht.linkto" +#define MAX_NO_VECT 1024 + + #define BD_VALIDATE_MEM_ALLOC(buff, op_errno, label) \ if (!buff) { \ op_errno = ENOMEM; \ @@ -174,5 +177,8 @@ int bd_snapshot_create (bd_local_t *local, bd_priv_t *priv); int bd_clone (bd_local_t *local, bd_priv_t *priv); int bd_merge (bd_priv_t *priv, uuid_t gfid); int bd_get_origin (bd_priv_t *priv, loc_t *loc, fd_t *fd, dict_t *dict); +int bd_do_zerofill(call_frame_t *frame, xlator_t *this, fd_t *fd, + off_t offset, off_t len, struct iatt *prebuf, + struct iatt *postbuf); #endif |