diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-24 08:08:05 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-24 08:08:05 +0000 |
commit | 2565ccf9de9d5e80fdb5bcadbc7130faba386d95 (patch) | |
tree | 5b5846e0b28aa29db5c410336f8e258994d85423 /source/include/includes.h | |
parent | 9d863fb1681a5b03696552e1d93fe339b4bae455 (diff) | |
download | samba-2565ccf9de9d5e80fdb5bcadbc7130faba386d95.tar.gz samba-2565ccf9de9d5e80fdb5bcadbc7130faba386d95.tar.xz samba-2565ccf9de9d5e80fdb5bcadbc7130faba386d95.zip |
volker was concerned about unique inode numbers and smbsh. This set of
changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to
try to provide inode numbers. If it is 0 then use the hash of the
filename as before.
Diffstat (limited to 'source/include/includes.h')
-rw-r--r-- | source/include/includes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index 59d43d8a365..9d5ee28358b 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -355,6 +355,12 @@ # endif #endif +#ifdef LARGE_SMB_INO_T +#define SINO_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF), SIVAL(p,(ofs)+4,(v)>>32)) +#else +#define SINO_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0)) +#endif + #ifndef SMB_OFF_T # ifdef HAVE_OFF64_T # define SMB_OFF_T off64_t |