From 02d09e03eb27f3a2dc299de704e45dae5173f43f Mon Sep 17 00:00:00 2001 From: Gordon Ross Date: Wed, 16 Dec 2009 15:03:38 -0500 Subject: 6650611 Attribute cache logic needs improvement 6876185 common I/F for net message build/parse in kernel vs user code 6891728 syslog shows: smbfs_close: error 9 closing /dirname 6906037 smbfs_mount() doesn't ASSERT the return value of smbfs_make_node() 6607536 the size of a dir on smbfs is not correct 6648146 smbfs should implement reclaim from node cache --HG-- rename : usr/src/lib/libsmbfs/smb/acl_conv.c => usr/src/common/smbclnt/smbfs_ntacl.c rename : usr/src/lib/libsmbfs/smb/acl_nt.h => usr/src/common/smbclnt/smbfs_ntacl.h --- usr/src/lib/libsmbfs/smb/acl_api.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'usr/src/lib/libsmbfs/smb/acl_api.c') diff --git a/usr/src/lib/libsmbfs/smb/acl_api.c b/usr/src/lib/libsmbfs/smb/acl_api.c index 3e9d703c99..b5b6123063 100644 --- a/usr/src/lib/libsmbfs/smb/acl_api.c +++ b/usr/src/lib/libsmbfs/smb/acl_api.c @@ -53,7 +53,7 @@ #include #include -#include "acl_nt.h" +#include "smbfs_ntacl.h" #include "private.h" /* Sanity check SD sizes */ @@ -78,7 +78,7 @@ smbfs_acl_iocget(int fd, uint32_t selector, mbdata_t *mbp) struct mbuf *m; int error; - error = mb_init(mbp, MAX_RAW_SD_SIZE); + error = mb_init_sz(mbp, MAX_RAW_SD_SIZE); if (error) return (error); @@ -157,7 +157,7 @@ smbfs_acl_getsd(int fd, uint32_t selector, i_ntsd_t **sdp) * (like "absolute" form per. NT docs) * Returns allocated data in sdp */ - error = mb_get_ntsd(mbp, sdp); + error = md_get_ntsd(mbp, sdp); } mb_done(mbp); @@ -174,7 +174,9 @@ smbfs_acl_setsd(int fd, uint32_t selector, i_ntsd_t *sd) int error; mbp = &mb_store; - mb_init(mbp, M_MINSIZE); + error = mb_init_sz(mbp, MAX_RAW_SD_SIZE); + if (error) + return (error); /* * Export the "internal" SD into an mb chain. -- cgit v1.2.3