diff options
author | afshin salek ardakani - Sun Microsystems - Irvine United States <Afshin.Ardakani@Sun.COM> | 2010-03-20 13:03:54 -0700 |
---|---|---|
committer | afshin salek ardakani - Sun Microsystems - Irvine United States <Afshin.Ardakani@Sun.COM> | 2010-03-20 13:03:54 -0700 |
commit | 9fb67ea305c66b6a297583b9b0db6796b0dfe497 (patch) | |
tree | c349f5290a8e9d20887b690df8c81dd17e405c9c /usr/src/lib/libidmap | |
parent | e58a2f26c9663323aa315835a769f6008a17f7e4 (diff) | |
download | illumos-joyent-9fb67ea305c66b6a297583b9b0db6796b0dfe497.tar.gz |
PSARC/2009/534 SMB/CIFS Standalone DFS
PSARC/2010/052 idmap flush
6711751 SMB/CIFS Distributed File System (DFS)
6650858 cache flush sub-command could be useful
6916379 share modes should be checked for directories as well as files
6906874 Automatic primary group mapping based on user mapping
6879236 No error report when ad-container refers to nonexistent container
6919087 Intermittent smbd crash during share access
6853811 Kerberized applications fail even after a successful domain join via smbadm
6907640 Current algorithm of anonymous authentication is not correct
6888813 SMB/CIFS support for ZFS user and group quotas
6921142 Guest issues with idmap rule and with workgroup mode
6924843 smb_sam_lookup_sid() leaks memory
6919600 Unable to delete ACE from ACL on a share
6915463 smb_nic interface needs LOG_ERR syslog entries and proper return codes
6926137 WritePrinter requires multi-fragment NDR RPC support
6926211 smbd could report clock skew
6925697 Quota usage does not decrease after deleting files from Mac Snow Leopard 10.6
6849962 smbadm show cannot display all groups with error 'cannot obtain a SID'
6926265 SMB watch tree change notification
6811424 must restart smb/server when idmapd restarts
6927745 Consolidate file system query/set information handlers
6924281 SMB_WRITE_RAW_COM doesn't work.
6925618 idmap show -v gets type of UNIX ID wrong in "Rule" output
6807651 rule changes do not flush cache
6928550 libsmbrdr doesn't cleanup stale sessions
6861058 MMC: Error message printed on log entries
6817392 smbd will not exit
6931027 core file due to NULL zpool handle in zfs_open()
--HG--
rename : usr/src/common/smbsrv/smb_common_door_decode.c => usr/src/common/smbsrv/smb_door_legacy.c
rename : usr/src/common/smbsrv/smb_xdr_utils.c => usr/src/common/smbsrv/smb_xdr.c
rename : usr/src/lib/smbsrv/libmlsvc/common/mlsvc_wkssvc.c => usr/src/lib/smbsrv/libmlsvc/common/wkssvc_svc.c
rename : usr/src/uts/common/fs/smbsrv/smb_trans2_query_fs_information.c => usr/src/uts/common/fs/smbsrv/smb_fsinfo.c
rename : usr/src/uts/common/fs/smbsrv/smb_kdoor_clnt.c => usr/src/uts/common/fs/smbsrv/smb_kdoor.c
rename : usr/src/uts/common/fs/smbsrv/smb_util.c => usr/src/uts/common/fs/smbsrv/smb_kutil.c
rename : usr/src/uts/common/smbsrv/smb_common_door.h => usr/src/uts/common/smbsrv/smb_door.h
Diffstat (limited to 'usr/src/lib/libidmap')
-rw-r--r-- | usr/src/lib/libidmap/common/idmap_api.c | 22 | ||||
-rw-r--r-- | usr/src/lib/libidmap/common/idmap_priv.h | 4 | ||||
-rw-r--r-- | usr/src/lib/libidmap/common/mapfile-vers | 4 |
3 files changed, 27 insertions, 3 deletions
diff --git a/usr/src/lib/libidmap/common/idmap_api.c b/usr/src/lib/libidmap/common/idmap_api.c index b9c46ca2a8..c58e2c00cd 100644 --- a/usr/src/lib/libidmap/common/idmap_api.c +++ b/usr/src/lib/libidmap/common/idmap_api.c @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -2561,3 +2561,23 @@ idmap_getwinnamebygid(gid_t gid, int flag, char **name, char **domain) { return (idmap_getwinnamebypid(gid, 0, flag, name, domain)); } + +idmap_stat +idmap_flush(idmap_handle_t *handle, idmap_flush_op op) +{ + CLIENT *clnt; + enum clnt_stat clntstat; + idmap_retcode res; + + res = IDMAP_SUCCESS; + _IDMAP_GET_CLIENT_HANDLE(handle, clnt); + + clntstat = clnt_call(clnt, IDMAP_FLUSH, + (xdrproc_t)xdr_idmap_flush_op, (caddr_t)&op, + (xdrproc_t)xdr_idmap_retcode, (caddr_t)&res, TIMEOUT); + + if (clntstat != RPC_SUCCESS) { + return (_idmap_rpc2stat(clnt)); + } + return (res); +} diff --git a/usr/src/lib/libidmap/common/idmap_priv.h b/usr/src/lib/libidmap/common/idmap_priv.h index ad08404f77..d044225730 100644 --- a/usr/src/lib/libidmap/common/idmap_priv.h +++ b/usr/src/lib/libidmap/common/idmap_priv.h @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. + * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -123,6 +123,8 @@ extern idmap_stat idmap_udt_rm_namerule(idmap_udt_handle_t *, boolean_t, /* Flush name-based mapping rules */ extern idmap_stat idmap_udt_flush_namerules(idmap_udt_handle_t *); +/* Flush caches */ +extern idmap_stat idmap_flush(idmap_handle_t *, idmap_flush_op); /* * Iterator API diff --git a/usr/src/lib/libidmap/common/mapfile-vers b/usr/src/lib/libidmap/common/mapfile-vers index 2201c28c42..b0fc8c9cec 100644 --- a/usr/src/lib/libidmap/common/mapfile-vers +++ b/usr/src/lib/libidmap/common/mapfile-vers @@ -19,7 +19,7 @@ # CDDL HEADER END # # -# Copyright 2009 Sun Microsystems, Inc. All rights reserved. +# Copyright 2010 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # @@ -62,6 +62,7 @@ SUNWprivate { idmap_cache_get_data; idmap_fini; idmap_fini_namemaps; + idmap_flush; idmap_free; idmap_getext_gidbysid; idmap_getext_pidbysid; @@ -125,6 +126,7 @@ SUNWprivate { xdr_directory_entry_rpc; xdr_directory_get_common_1_argument; xdr_directory_results_rpc; + xdr_idmap_flush_op; xdr_idmap_ids_res; xdr_idmap_id_res; xdr_idmap_list_mappings_1_argument; |