diff options
author | Shirish Kalele <kalele@samba.org> | 2000-05-16 01:13:16 +0000 |
---|---|---|
committer | Shirish Kalele <kalele@samba.org> | 2000-05-16 01:13:16 +0000 |
commit | 6803d2574fab9e5931786d5c9aa5dc5867bb5f05 (patch) | |
tree | 1f45dbed35b47aa3405a861776d649c47ba2d869 /source/include/msdfs.h | |
parent | 919d49b58ad8213c0e89948f560d816b20312bb2 (diff) | |
download | samba-6803d2574fab9e5931786d5c9aa5dc5867bb5f05.tar.gz samba-6803d2574fab9e5931786d5c9aa5dc5867bb5f05.tar.xz samba-6803d2574fab9e5931786d5c9aa5dc5867bb5f05.zip |
The new msdfs implementation that uses symlinks to point to other
servers. Very intuitive.
Removed the dfs map parsing code and tdb maintenance code (files
msdfs/parse_dfs_map.c & msdfs/msdfs_tdb.c), dfs map loading and unloading
calls (param/loadparm.c smbd/server.c).
Added code to display msdfs format symlinks as directories in a
transact2_findfirst/findnext. (smbd/trans2.c)
Modified msdfs/msdfs.c to use the msdfs symlinks to
create dfs referrals.
Changed msdfs/README to reflect new operability.
Diffstat (limited to 'source/include/msdfs.h')
-rw-r--r-- | source/include/msdfs.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/source/include/msdfs.h b/source/include/msdfs.h index 0c2e3c14df2..ac054307b5d 100644 --- a/source/include/msdfs.h +++ b/source/include/msdfs.h @@ -28,6 +28,13 @@ #define DFSREF_REFERRAL_SERVER 0x1 #define DFSREF_STORAGE_SERVER 0x2 +/* Referral sizes */ +#define VERSION2_REFERRAL_SIZE 0x16 +#define VERSION3_REFERRAL_SIZE 0x22 +#define REFERRAL_HEADER_SIZE 0x08 + +/* Maximum number of referrals for each Dfs volume */ +#define MAX_REFERRAL_COUNT 256 struct referral { @@ -66,14 +73,9 @@ struct dfs_path return(dfs_path_error(inbuf,outbuf)); } #define init_dfsroot(conn, inbuf, outbuf) \ -{ if(*lp_dfsmap(SNUM(conn)) && lp_host_msdfs()) { \ +{ if(lp_msdfs_root(SNUM(conn)) && lp_host_msdfs()) \ SSVAL(outbuf, smb_vwv2, SMB_SHARE_IN_DFS | SMB_SUPPORT_SEARCH_BITS); \ - if(lp_dfsmap_loaded(SNUM(conn))) \ - msdfs_open(False); \ - else { \ - DEBUG(3,("msdfs map database not initialized!\n")); \ - pstrcpy(lp_dfsmap(SNUM(conn)),""); \ - } } } +} #else /* Stub macros */ |