} vfs_handle_struct;
-typedef struct vfs_statvfs_struct {
+struct vfs_statvfs_struct {
/* For undefined recommended transfer size return -1 in that field */
uint32_t OptimalTransferSize; /* bsize on some os, iosize on other os */
uint32_t BlockSize;
/* NB flags can come from FILE_SYSTEM_DEVICE_INFO call */
int FsCapabilities;
-} vfs_statvfs_struct;
+};
/* Add a new FSP extension of the given type. Returns a pointer to the
* extenstion data.
}
static int cephwrap_statvfs(struct vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- vfs_statvfs_struct *statbuf)
+ const struct smb_filename *smb_fname,
+ struct vfs_statvfs_struct *statbuf)
{
struct statvfs statvfs_buf;
int ret;
}
static int vfswrap_statvfs(struct vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- vfs_statvfs_struct *statbuf)
+ const struct smb_filename *smb_fname,
+ struct vfs_statvfs_struct *statbuf)
{
return sys_statvfs(smb_fname->base_name, statbuf);
}
/* The following definitions come from smbd/statvfs.c */
-int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf);
+int sys_statvfs(const char *path, struct vfs_statvfs_struct *statbuf);
/* The following definitions come from smbd/trans2.c */
case SMB_QUERY_POSIX_FS_INFO:
{
int rc;
- vfs_statvfs_struct svfs;
+ struct vfs_statvfs_struct svfs;
if (!lp_smb1_unix_extensions()) {
return NT_STATUS_INVALID_LEVEL;
return ret;
}
#elif defined(STAT_STATVFS) && defined(HAVE_FSID_INT)
-static int posix_statvfs(const char *path, vfs_statvfs_struct *statbuf)
+static int posix_statvfs(const char *path, struct vfs_statvfs_struct *statbuf)
{
struct statvfs statvfs_buf;
int result;
between LSB and FreeBSD/POSIX.1 (IEEE Std 1003.1-2001) we need to abstract the interface
so that particular OS would use its preferred interface.
*/
-int sys_statvfs(const char *path, vfs_statvfs_struct *statbuf)
+int sys_statvfs(const char *path, struct vfs_statvfs_struct *statbuf)
{
#if defined(BSD_STYLE_STATVFS)
return bsd_statvfs(path, statbuf);