summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-19 02:32:39 +0000
committerJeremy Allison <jra@samba.org>2002-03-19 02:32:39 +0000
commitffadd471b9664018b3010ab5d74e6d05b8886e66 (patch)
treeeaf1c0c83d1f11f2eb6f68d1201f745722f33dfe /source3/include
parentcdc9931bb2f53272159b04ef7b1b057ce837ed4b (diff)
downloadsamba-ffadd471b9664018b3010ab5d74e6d05b8886e66.tar.gz
samba-ffadd471b9664018b3010ab5d74e6d05b8886e66.tar.bz2
samba-ffadd471b9664018b3010ab5d74e6d05b8886e66.zip
Sync up vfs changes from 2.2.x.
Jeremy. (This used to be commit ad1e858d8e72adf924ff435eab8da3e60842e2e6)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/config.h.in3
-rw-r--r--source3/include/smb.h1
-rw-r--r--source3/include/vfs.h6
3 files changed, 8 insertions, 2 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in
index 310ef32b2f..cebd9ee346 100644
--- a/source3/include/config.h.in
+++ b/source3/include/config.h.in
@@ -676,6 +676,9 @@
/* Define if you have the readlink function. */
#undef HAVE_READLINK
+/* Define if you have the realpath function. */
+#undef HAVE_REALPATH
+
/* Define if you have the rename function. */
#undef HAVE_RENAME
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 303b1f5efa..02645f35d3 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -449,6 +449,7 @@ typedef struct connection_struct
struct vfs_ops vfs_ops; /* Filesystem operations */
/* Handle on dlopen() call */
void *dl_handle;
+ void *vfs_private;
char *user; /* name of user who *opened* this connection */
uid_t uid; /* uid of user who *opened* this connection */
diff --git a/source3/include/vfs.h b/source3/include/vfs.h
index da601b937b..bbbe2cb8b2 100644
--- a/source3/include/vfs.h
+++ b/source3/include/vfs.h
@@ -1,5 +1,6 @@
/*
- Unix SMB/CIFS implementation.
+ Unix SMB/Netbios implementation.
+ Version 1.9.
VFS structures and parameters
Copyright (C) Tim Potter 1999
@@ -55,7 +56,7 @@ struct vfs_ops {
int (*connect)(struct connection_struct *conn, const char *service, const char *user);
void (*disconnect)(struct connection_struct *conn);
SMB_BIG_UINT (*disk_free)(struct connection_struct *conn, const char *path, BOOL small_query, SMB_BIG_UINT *bsize,
- SMB_BIG_UINT *dfree, SMB_BIG_UINT *dsize);
+ SMB_BIG_UINT *dfree, SMB_BIG_UINT *dsize);
/* Directory operations */
@@ -91,6 +92,7 @@ struct vfs_ops {
int (*readlink)(struct connection_struct *conn, const char *path, char *buf, size_t bufsiz);
int (*link)(struct connection_struct *conn, const char *oldpath, const char *newpath);
int (*mknod)(struct connection_struct *conn, const char *path, mode_t mode, SMB_DEV_T dev);
+ char *(*realpath)(struct connection_struct *conn, const char *path, char *resolved_path);
/* NT ACL operations. */