From 4262eb401fac0a6f9f0f76bff390041ad6600536 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Fri, 2 Mar 2012 14:26:10 -0700 Subject: [PATCH] s3:vfs_gpfs: Export disk_norm function vfs modules implementing the disk_free callback need access to the function disk_norm for normalizing the data if the parameter small query is true. --- source3/smbd/dfree.c | 2 +- source3/smbd/proto.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c index 03541880e15..1a73132ae57 100644 --- a/source3/smbd/dfree.c +++ b/source3/smbd/dfree.c @@ -25,7 +25,7 @@ Normalise for DOS usage. ****************************************************************************/ -static void disk_norm(bool small_query, uint64_t *bsize,uint64_t *dfree,uint64_t *dsize) +void disk_norm(bool small_query, uint64_t *bsize,uint64_t *dfree,uint64_t *dsize) { /* check if the disk is beyond the max disk size */ uint64_t maxdisksize = lp_maxdisksize(); diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index ee91e9453d0..07cfef5b5e0 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -169,6 +169,7 @@ bool claim_connection(connection_struct *conn, const char *name); /* The following definitions come from smbd/dfree.c */ +void disk_norm(bool small_query, uint64_t *bsize,uint64_t *dfree,uint64_t *dsize); uint64_t sys_disk_free(connection_struct *conn, const char *path, bool small_query, uint64_t *bsize,uint64_t *dfree,uint64_t *dsize); uint64_t get_dfree_info(connection_struct *conn, -- 2.34.1