diff options
Diffstat (limited to 'libglusterfs/src/quota-common-utils.c')
| -rw-r--r-- | libglusterfs/src/quota-common-utils.c | 51 | 
1 files changed, 0 insertions, 51 deletions
diff --git a/libglusterfs/src/quota-common-utils.c b/libglusterfs/src/quota-common-utils.c index 97965b09947..012f80fab48 100644 --- a/libglusterfs/src/quota-common-utils.c +++ b/libglusterfs/src/quota-common-utils.c @@ -177,57 +177,6 @@ out:  }  int32_t -quota_conf_write_header (int fd) -{ -        int    header_len    = 0; -        int    ret           = 0; - -        header_len = strlen (QUOTA_CONF_HEADER); - -        ret = gf_nwrite (fd, QUOTA_CONF_HEADER, header_len); -        if (ret != header_len) { -                ret = -1; -                goto out; -        } - -        ret = 0; - -out: -        if (ret < 0) -                gf_log_callingfn ("quota", GF_LOG_ERROR, "failed to write " -                                  "header to a quota conf"); - -        return ret; -} - -int32_t -quota_conf_write_gfid (int fd, void *buf, char type) -{ -        int ret        = 0; - -        ret = gf_nwrite (fd, buf, 16); -        if (ret != 16) { -                ret = -1; -                goto out; -        } - -        ret = gf_nwrite (fd, &type, 1); -        if (ret != 1) { -                ret = -1; -                goto out; -        } - -        ret = 0; - -out: -        if (ret < 0) -                gf_log_callingfn ("quota", GF_LOG_ERROR, "failed to write " -                                  "gfid %s to a quota conf", uuid_utoa (buf)); - -        return ret; -} - -int32_t  quota_conf_read_gfid (int fd, void *buf, char *type, float version)  {          int           ret         = 0;  | 
