s3:vfs_gpfs: Export disk_norm function
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Fri, 2 Mar 2012 21:26:10 +0000 (14:26 -0700)
committerChristian Ambach <ambi@samba.org>
Thu, 22 Mar 2012 17:41:22 +0000 (18:41 +0100)
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
source3/smbd/proto.h

index 03541880e1546335491df9e25d9e3965716ea8dd..1a73132ae5763894df757bfa2b2b6a0db627fcb1 100644 (file)
@@ -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();
index ee91e9453d0196a2acf85a269c23d89074beaae3..07cfef5b5e080f9066c72b88dc16146f07a6ea46 100644 (file)
@@ -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,