From: Volker Lendecke Date: Fri, 23 Jan 2026 15:40:09 +0000 (+0100) Subject: lib: Move statvfs.[ch] to lib/util X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a6a5cf40d08bf0dbb445019069885405f2ed5a0;p=thirdparty%2Fsamba.git lib: Move statvfs.[ch] to lib/util Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/smbd/statvfs.c b/lib/util/statvfs.c similarity index 100% rename from source3/smbd/statvfs.c rename to lib/util/statvfs.c diff --git a/source3/smbd/statvfs.h b/lib/util/statvfs.h similarity index 100% rename from source3/smbd/statvfs.h rename to lib/util/statvfs.h diff --git a/lib/util/wscript_build b/lib/util/wscript_build index 0f25fbd2160..cd62876f87b 100644 --- a/lib/util/wscript_build +++ b/lib/util/wscript_build @@ -189,6 +189,7 @@ else: dprintf.c dns_cmp.c fsusage.c + statvfs.c genrand_util.c getpass.c idtree_random.c diff --git a/source3/modules/vfs_ceph.c b/source3/modules/vfs_ceph.c index 51d3940910b..b35af684599 100644 --- a/source3/modules/vfs_ceph.c +++ b/source3/modules/vfs_ceph.c @@ -32,7 +32,7 @@ #include "includes.h" #include "smbd/smbd.h" -#include "smbd/statvfs.h" +#include "lib/util/statvfs.h" #include "system/filesys.h" #include #include diff --git a/source3/modules/vfs_ceph_new.c b/source3/modules/vfs_ceph_new.c index e0ead9a6383..935ed2c605d 100644 --- a/source3/modules/vfs_ceph_new.c +++ b/source3/modules/vfs_ceph_new.c @@ -32,7 +32,7 @@ #include "includes.h" #include "smbd/smbd.h" -#include "smbd/statvfs.h" +#include "lib/util/statvfs.h" #include "system/filesys.h" #include #include diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 54e085a8b2a..629750b2cfd 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -37,7 +37,7 @@ #include "offload_token.h" #include "util_reparse.h" #include "lib/util/string_wrappers.h" -#include "source3/smbd/statvfs.h" +#include "lib/util/statvfs.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_VFS diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 5f5ca928204..8ee36bc8e64 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -37,7 +37,7 @@ #include "includes.h" #include "smbd/smbd.h" -#include "smbd/statvfs.h" +#include "lib/util/statvfs.h" #include #include #include "lib/util/dlinklist.h" diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index a684ebbde6a..b29fcbcca79 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -30,7 +30,7 @@ #include "version.h" #include "smbd/smbd.h" #include "smbd/globals.h" -#include "smbd/statvfs.h" +#include "lib/util/statvfs.h" #include "../libcli/auth/libcli_auth.h" #include "../librpc/gen_ndr/xattr.h" #include "../librpc/gen_ndr/ndr_security.h" diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 9f0aa9b4358..5f0a8d6fe49 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -27,7 +27,7 @@ #include "system/filesys.h" #include "smbd/smbd.h" #include "smbd/globals.h" -#include "smbd/statvfs.h" +#include "lib/util/statvfs.h" #include "../lib/util/memcache.h" #include "transfer_file.h" #include "ntioctl.h" diff --git a/source3/wscript_build b/source3/wscript_build index e4a595dd180..585a181c8bc 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -684,7 +684,7 @@ bld.SAMBA3_LIBRARY('smbd_base', smbd/quotas.c smbd/ntquotas.c smbd/msdfs.c - smbd/smb2_aio.c smbd/statvfs.c + smbd/smb2_aio.c smbd/dmapi.c smbd/smb2_signing.c smbd/file_access.c