summaryrefslogtreecommitdiff
path: root/source/smbd/quotas.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-01 20:11:54 +0000
committerJeremy Allison <jra@samba.org>1998-09-01 20:11:54 +0000
commit28aa182dbffaa4ffd86047e608400de4b26e80eb (patch)
tree789ac30eed5ef242b4cd9ffd6cbb84a7c640e0f4 /source/smbd/quotas.c
parent8bd2cf0eb7533c3ec2d5767163ffdaf20b01bbff (diff)
downloadsamba-28aa182dbffaa4ffd86047e608400de4b26e80eb.tar.gz
More abstraction of file system data types, to move to a 64
bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy.
Diffstat (limited to 'source/smbd/quotas.c')
-rw-r--r--source/smbd/quotas.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/smbd/quotas.c b/source/smbd/quotas.c
index dbdbd499213..7f1cd5ce793 100644
--- a/source/smbd/quotas.c
+++ b/source/smbd/quotas.c
@@ -51,7 +51,7 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
uid_t euser_id;
int r;
struct dqblk D;
- struct stat S;
+ SMB_STRUCT_STAT S;
FILE *fp;
struct mntent *mnt;
int devno;
@@ -135,7 +135,7 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
{
struct mntent *mnt;
FILE *fd;
- struct stat sbuf;
+ SMB_STRUCT_STAT sbuf;
dev_t devno ;
static dev_t devno_cached = 0 ;
static pstring name;
@@ -255,7 +255,7 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
static pstring name;
#endif
FILE *fd;
- struct stat sbuf;
+ SMB_STRUCT_STAT sbuf;
dev_t devno ;
static dev_t devno_cached = 0 ;
int found ;
@@ -377,7 +377,7 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
uid_t user_id, euser_id;
int r, save_errno;
struct dqblk D;
- struct stat S;
+ SMB_STRUCT_STAT S;
euser_id = geteuid();
user_id = getuid();
@@ -433,7 +433,7 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
int r;
struct dqblk D;
struct fs_disk_quota F;
- struct stat S;
+ SMB_STRUCT_STAT S;
FILE *fp;
struct mntent *mnt;
int devno;
@@ -573,7 +573,7 @@ BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
struct dqblk D;
#if !defined(__FreeBSD__) && !defined(AIX) && !defined(__OpenBSD__)
char dev_disk[256];
- struct stat S;
+ SMB_STRUCT_STAT S;
/* find the block device file */
if ((stat(path, &S)<0) ||
(devnm(S_IFBLK, S.st_dev, dev_disk, 256, 0)<0)) return (False);