summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@us.ibm.com>2012-03-02 14:26:10 -0700
committerChristian Ambach <ambi@samba.org>2012-03-22 18:41:22 +0100
commit4262eb401fac0a6f9f0f76bff390041ad6600536 (patch)
treef848a7d52b542a2157882ae0f6e5b9982d3d86dd /source3
parent80cb6e84de0fa5c713bf1ba4c5866cdb1aea15f5 (diff)
downloadsamba-4262eb401fac0a6f9f0f76bff390041ad6600536.tar.gz
samba-4262eb401fac0a6f9f0f76bff390041ad6600536.tar.bz2
samba-4262eb401fac0a6f9f0f76bff390041ad6600536.zip
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.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dfree.c2
-rw-r--r--source3/smbd/proto.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/dfree.c b/source3/smbd/dfree.c
index 03541880e1..1a73132ae5 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 ee91e9453d..07cfef5b5e 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,