[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha7-853-ga2d5fe4

Volker Lendecke vlendec at samba.org
Mon Apr 6 11:30:24 GMT 2009


The branch, master has been updated
       via  a2d5fe4a0501058aa2b20f4571e382fd629e446b (commit)
       via  f2e17a4b24efd8448172f52a2562e6a17562008e (commit)
       via  54c2fe65837bb35f1632af112eaccbbd916a6456 (commit)
      from  2b1fe2c98f4e0013dee4cbae62dc36cdd4085c7d (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit a2d5fe4a0501058aa2b20f4571e382fd629e446b
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Apr 5 07:32:03 2009 +0200

    Make some functions static to vfs_gpfs.c

commit f2e17a4b24efd8448172f52a2562e6a17562008e
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Apr 5 07:31:47 2009 +0200

    Add prototype for smbd_gpfs_get_realfilename_path

commit 54c2fe65837bb35f1632af112eaccbbd916a6456
Author: Volker Lendecke <vl at samba.org>
Date:   Sun Apr 5 07:31:30 2009 +0200

    Fix two c++ warnings in vfs_gpfs.c

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_gpfs.c |   32 ++++++++++++++++----------------
 source3/modules/vfs_gpfs.h |    2 ++
 2 files changed, 18 insertions(+), 16 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index 3c061ec..b304d8b 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -341,7 +341,7 @@ static bool gpfsacl_process_smbacl(files_struct *fsp, SMB4ACL_T *smbacl)
 	gacl_len = sizeof(struct gpfs_acl) +
 		(smb_get_naces(smbacl)-1)*sizeof(gpfs_ace_v4_t);
 
-	gacl = TALLOC_SIZE(mem_ctx, gacl_len);
+	gacl = (struct gpfs_acl *)TALLOC_SIZE(mem_ctx, gacl_len);
 	if (gacl == NULL) {
 		DEBUG(0, ("talloc failed\n"));
 		errno = ENOMEM;
@@ -556,9 +556,9 @@ static SMB_ACL_T gpfsacl_get_posix_acl(const char *path, gpfs_aclType_t type)
 	return result;	
 }
 
-SMB_ACL_T gpfsacl_sys_acl_get_file(vfs_handle_struct *handle,
-				    const char *path_p,
-				    SMB_ACL_TYPE_T type)
+static SMB_ACL_T gpfsacl_sys_acl_get_file(vfs_handle_struct *handle,
+					  const char *path_p,
+					  SMB_ACL_TYPE_T type)
 {
 	gpfs_aclType_t gpfs_type;
 
@@ -577,8 +577,8 @@ SMB_ACL_T gpfsacl_sys_acl_get_file(vfs_handle_struct *handle,
 	return gpfsacl_get_posix_acl(path_p, gpfs_type);
 }
 
-SMB_ACL_T gpfsacl_sys_acl_get_fd(vfs_handle_struct *handle,
-				 files_struct *fsp)
+static SMB_ACL_T gpfsacl_sys_acl_get_fd(vfs_handle_struct *handle,
+					files_struct *fsp)
 {
 	return gpfsacl_get_posix_acl(fsp->fsp_name, GPFS_ACL_TYPE_ACCESS);
 }
@@ -600,7 +600,7 @@ static struct gpfs_acl *smb2gpfs_acl(const SMB_ACL_T pacl,
 	len = sizeof(struct gpfs_acl) - sizeof(union gpfs_ace_union) +
 		(pacl->count)*sizeof(gpfs_ace_v1_t);
 
-	result = SMB_MALLOC(len);
+	result = (struct gpfs_acl *)SMB_MALLOC(len);
 	if (result == NULL) {
 		errno = ENOMEM;
 		return result;
@@ -670,10 +670,10 @@ static struct gpfs_acl *smb2gpfs_acl(const SMB_ACL_T pacl,
 	return result;
 }
 
-int gpfsacl_sys_acl_set_file(vfs_handle_struct *handle,
-			      const char *name,
-			      SMB_ACL_TYPE_T type,
-			      SMB_ACL_T theacl)
+static int gpfsacl_sys_acl_set_file(vfs_handle_struct *handle,
+				    const char *name,
+				    SMB_ACL_TYPE_T type,
+				    SMB_ACL_T theacl)
 {
 	struct gpfs_acl *gpfs_acl;
 	int result;
@@ -689,15 +689,15 @@ int gpfsacl_sys_acl_set_file(vfs_handle_struct *handle,
 	return result;
 }
 
-int gpfsacl_sys_acl_set_fd(vfs_handle_struct *handle,
-			    files_struct *fsp,
-			    SMB_ACL_T theacl)
+static int gpfsacl_sys_acl_set_fd(vfs_handle_struct *handle,
+				  files_struct *fsp,
+				  SMB_ACL_T theacl)
 {
 	return gpfsacl_sys_acl_set_file(handle, fsp->fsp_name, SMB_ACL_TYPE_ACCESS, theacl);
 }
 
-int gpfsacl_sys_acl_delete_def_file(vfs_handle_struct *handle,
-				     const char *path)
+static int gpfsacl_sys_acl_delete_def_file(vfs_handle_struct *handle,
+					   const char *path)
 {
 	errno = ENOTSUP;
 	return -1;
diff --git a/source3/modules/vfs_gpfs.h b/source3/modules/vfs_gpfs.h
index 3c499b0..efca560 100644
--- a/source3/modules/vfs_gpfs.h
+++ b/source3/modules/vfs_gpfs.h
@@ -29,4 +29,6 @@ bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask,
 int set_gpfs_lease(int fd, int leasetype);
 int smbd_gpfs_getacl(char *pathname, int flags, void *acl);
 int smbd_gpfs_putacl(char *pathname, int flags, void *acl);
+int smbd_gpfs_get_realfilename_path(char *pathname, char *filenamep,
+				    int *buflen);
 void init_gpfs(void);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list