diff options
author | Gordon Ross <Gordon.Ross@Sun.COM> | 2009-12-16 15:03:38 -0500 |
---|---|---|
committer | Gordon Ross <Gordon.Ross@Sun.COM> | 2009-12-16 15:03:38 -0500 |
commit | 02d09e03eb27f3a2dc299de704e45dae5173f43f (patch) | |
tree | d01a29c58a8a455627b355abb83addad11802bd6 /usr/src/lib/libsmbfs/smb/acl_api.c | |
parent | aab2fe4104e428e5213f84aee65b9905ec97cf9a (diff) | |
download | illumos-joyent-02d09e03eb27f3a2dc299de704e45dae5173f43f.tar.gz |
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
Diffstat (limited to 'usr/src/lib/libsmbfs/smb/acl_api.c')
-rw-r--r-- | usr/src/lib/libsmbfs/smb/acl_api.c | 10 |
1 files changed, 6 insertions, 4 deletions
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 <netsmb/smb_lib.h> #include <netsmb/smbfs_acl.h> -#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. |