1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

2601 Commits

Author SHA1 Message Date
Andrew Tridgell
074da7ccf7 r3288: - updated the path processing in pvfs to pass the RAW-CHKPATH test. This
rather extensive test reveals some really bizarre error code
  handling in w2k3.

- extended and simplified the RAW-CHKPATH test, making it easier to
  read (note that Samba3 fails the new tests - jra may wish to look)

- marked RAW-CHKPATH as pass for pvfs
(This used to be commit 32dccf91cfa5b57f84dd6307720b3f45faa10ae0)
2007-10-10 13:04:50 -05:00
Tim Potter
50465fde65 r3287: The devicename and formname fields in a device mode are fixed length
strings.  Not sure how to write this as idl which maps to a char * but
at least devicemodes can be pulled off the wire sucessfully.
(This used to be commit dd20730a09935b0783b020a020ed9283ca1e4608)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
661a4a3f67 r3286: filled in more missing SV_TYPE_* defines
(This used to be commit 891d87a71203fcee504875976a4ee61b84579c83)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
c336572710 r3285: fixed another IDL typo
(This used to be commit 4545ac9bfabf4af4b44cb72f30ed93273d9cdc37)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
6a0f26c709 r3284: - don't use a enum for bit-fields. It isn't legal C (as C is limited to
signed integer values for enum), and it is also very confusing to read.

  Also, please align defines nicely. The value of SV_TYPE_DOMAIN_ENUM
  was defined incorrectly, which became obvious when you align the
  defines, but wasn't at all obvious in the original code.

- removed redundent defines in smb.h
(This used to be commit fe042b8e5ca15dfd986bc0c05d464214a51cc0cf)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
2bf6dff983 r3283: converted to quoted uuid() defines in all our IDL. This should help
the build on systems like solaris with the SunPRO compiler
(This used to be commit fe913ad11bf1c5e9fe04ed769a93b0ea16aa0a34)
2007-10-10 13:04:50 -05:00
Andrew Tridgell
1a7a5c66f5 r3282: some C pre-processors don't like expressions like
uuid(1ff70682-0a51-30e8-076d-740be8cee98b) so we now accept
uuid("1ff70682-0a51-30e8-076d-740be8cee98b") in pidl, and
automagically add quotes only if needed
(This used to be commit 4aab2cb210eb9678bb72aebb33dcf6fd499206c1)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
ba450de07c r3281: some compilers can't handle empty structures, so for empty IDL
structures generate a single _empty_ element in the header
(This used to be commit 00ff1ca1d284bb698e98c773b18a29695e927605)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
d3da369f91 r3280: fixed byte order of rhs IP
(This used to be commit 29fab12d0b1649046ab2abb08b51f9845c8f8116)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
1f6fd130a3 r3279: Removed MSG_DONTWAIT flags as many platform don't have it.
If a socket is non-blocking then adding MSG_DONTWAIT is pointless (it
does nothing), so all we lose is the ability to set non-blocking on a
packet-by-packet basis, which is not a very useful thing to have
anyway

if the socket is blocking then the code already adds MSG_WAITALL, so
MSG_DONTWAIT is also not needed in that case.
(This used to be commit b8a2afae67691a609b4a7a577fee3f9518adc9d2)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
9d055846f2 r3278: - rewrote the client side rpc connection code to use lib/socket/
rather than doing everything itself. This greatly simplifies the
  code, although I really don't like the socket_recv() interface (it
  always allocates memory for you, which means an extra memcpy in this
  code)

- fixed several bugs in the socket_ipv4.c code, in particular client
  side code used a non-blocking connect but didn't handle EINPROGRESS,
  so it had no chance of working. Also fixed the error codes, using
  map_nt_error_from_unix()

- cleaned up and expanded map_nt_error_from_unix()

- changed interpret_addr2() to not take a mem_ctx. It makes absolutely
  no sense to allocate a fixed size 4 byte structure like this. Dozens
  of places in the code were also using interpret_addr2() incorrectly
  (precisely because the allocation made no sense)
(This used to be commit 7f2c771b0e0e98c5c9e5cf662592d64d34ff1205)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
5ae4481161 r3277: don't use the non-portable getaddrinfo() function, instead use
interpret_addr() and if someone wants to add support to that function
for ipv6 then they are welcome to.
(This used to be commit 50377db11bb727b407744e0c50805c8f90810c16)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
b9ddb09f03 r3276: - allow for more than 256 open old style searches (limit currently set at an arbitrary 5000)
- auto-cleanup old searches that the client forgot to close (common with old searches)

- expanded the RAW-SEARCH test to test more than 256 old searches, and
  old search rewind (w2k3 fails this - it appears to not support rewind
  on old style searches)
(This used to be commit bc83d823b2140a10007490bf0101843a886f99a6)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
05ad898f68 r3271: use "struct messaging_context *" instead of "void *" in messaging API
(This used to be commit cc93813e4a09c538ad485dc2b3cb4c9be34f3d18)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
3b5c992481 r3270: - added another unlink test
- removed BASE-TRANS2 from the list of tests to be worked on (its
  already in the "passes" list)
(This used to be commit 8ba10229c3860b955de698c3e2660cf6d18e2f22)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
86bd884b1e r3269: fixed return value
(This used to be commit bc392d88b1fa34edfc922f43e190da003160a7d2)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
731e64cdcf r3268: - fixed wildcard handling in new dirlist code
- ensure that d_name from readdir is not used after closedir
(This used to be commit 5352613342c58192ae00618977041b98cd0ff7b6)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
2970ff9bd9 r3267: make LIBTDB depend on LIBREPLACE. This is needed for building the tdb tools on Solaris.
(This used to be commit c5d338d06137fe7464849df02671d8ab833e3b4e)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
12a23dd8bd r3263: - pvfs now passes RAW-SEARCH
(This used to be commit e5a0763655d8ccb929d2bf39bf099449b0dfcee7)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
ee7fa4812c r3262: - new pvfs_dirlist code that reopens the directory between search
calls. This is needed to allow for "new files appear during a search"
  behaviour

- pvfs now passes RAW-SEARCH
(This used to be commit 0d98f7653a1d58510a6cd4c2ac6c5e05c541109c)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
f493f7be97 r3261: added seek to RAW-SEARCH test
(This used to be commit 05530bfb99011db8a00f5debcf8eec19b5e8a5d6)
2007-10-10 13:04:47 -05:00
Andrew Tridgell
e767d8d1b2 r3260: redid the pvfs_dirlist() interface in preparation for a "keep
directory open" implementation, as opposed to the "load the whole
directory" interface used now. This will be needed to pass RAW-SEARCH
(This used to be commit 692623c6c0a2c6817fddfa77cd1c2525c27145c4)
2007-10-10 13:04:47 -05:00
Andrew Tridgell
991588e70c r3259: expanded the RAW-SEARCH test some more
(This used to be commit cc58d249f973397bf800c9b56a5d4ab30fcda2b4)
2007-10-10 13:04:47 -05:00
Andrew Tridgell
1fa9cb1449 r3258: fixed "don't change" attribute for RAW_SFILEINFO_BASIC_INFO
(This used to be commit 51f84800d50f44ec47a34e1c922c6197eb794558)
2007-10-10 13:04:47 -05:00
Andrew Tridgell
b3ada7f4f5 r3257: make the RAW-SEARCH test less sensitive to the servers directory ordering
(This used to be commit 097823bbde94da2a9d9d2afef3a4ed2715bb1f04)
2007-10-10 13:04:47 -05:00
Andrew Tridgell
79c9d6db55 r3256: get rid of the unused session_claim() and session_yield() calls
(This used to be commit f1c5be396b62203fb183431ea6218eed38976d0b)
2007-10-10 13:04:47 -05:00
Andrew Tridgell
f9fdeaa8f4 r3255: - fixed 2 uninitialised data errors found with valgrind
- fixed offset of setup words in nttrans reply
(This used to be commit 86b5118c2ae605560a196ee014b6134ec2928c5b)
2007-10-10 13:04:47 -05:00
Andrew Tridgell
4db039c3f3 r3254: - expanded the RAW-IOCTL test
- fixed the old ioctl interface to not check handle before failing

- pvs now passes RAW-IOCTL
(This used to be commit 98f6dbdba46c907039951559ec5f526410fd0039)
2007-10-10 13:04:46 -05:00
Andrew Tridgell
7f60959e64 r3253: - added rudimentary support for ntioctl in pvfs
- catch the SIGXFSZ signal, which for some completely insane reason is
  generated in current Linux systems when you write before the maximum
  offset in a file (maximum is 2^41 on my box). Why wasn't errno good
  enough for this?

- give the right ntstatus code for large offset write failures
(This used to be commit 367f0c2af409e4292f727e8a865762a008fd7e67)
2007-10-10 13:04:46 -05:00
Andrew Tridgell
cfc843cf29 r3252: pvfs now passes BASE-TRANS2
(This used to be commit a024cef2d078e6bf0ebd2a9272faf2bd39e66ee7)
2007-10-10 13:04:46 -05:00
Andrew Tridgell
d16b621ca9 r3251: - move the openattr test code into basic/attr.c
- cleaned up the RAW-WRITE test so it passes against w2k3, and gives
  more useful error messages
(This used to be commit d4042c4364b571b9425e1706fc765376160c8a60)
2007-10-10 13:04:46 -05:00
Tim Potter
fe4a608646 r3250: Add idl for printer info level 0.
(This used to be commit 68cd0b82e9a829dee0264523f2f2bdd37d479371)
2007-10-10 13:04:46 -05:00
Andrew Tridgell
f1814e5a53 r3249: - change_time is closer to ctime than mtime
- pvfs now passes the RAW-CLOSE test
(This used to be commit 98aea91ce67a0c64a98537bfe244495f10672323)
2007-10-10 13:04:46 -05:00
Andrew Tridgell
7a11723cfc r3248: don't stop searches on failed fill_search_info()
(This used to be commit 4cdd750b5cc9b26dbbaebe58b4f1c3984dac8d6c)
2007-10-10 13:04:46 -05:00
Andrew Tridgell
220c289ecf r3247: FILE_ATTRIBUTE_NORMAL is only a null-op for setattr and setattre, not basic_info
(This used to be commit 36286e477c9bc7b6e268fffb123b565b6e897a44)
2007-10-10 13:04:46 -05:00
Andrew Tridgell
67bd7a7cb9 r3246: new files should get created with FILE_ATTRIBUTE_ARCHIVE
(This used to be commit 090574c6982f703b124a5a123d2199be8f5b3968)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
920c0bba82 r3245: use __location__ in RAW-SEARCH
(This used to be commit 3d5f7f4ac49227369eced4b7fe9fe3a8e5ecafbb)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
b96fcd9d56 r3244: pvfs now passes the RAW-UNLINK and RAW-READ tests
(This used to be commit 230ec4d980534631ff736d5319f3e94357680d85)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
8962ec3a68 r3243: read the high offset count in SMBreadx in the server
(This used to be commit 977bc87d18d2ea8c6967bd8c1b953b09fff9b434)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
2b5b463892 r3242: make the RAW-READ test not exercise the 0-0 lock, which is not deterministic
(This used to be commit ecd4e315b99a0f2aa021937308c7b93c33efbd93)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
ba15d622d3 r3241: don't skip the read completely for a zero-length read, as it could give a lock conflict
(This used to be commit 7ce6139f984c72a6347c7a64d95d5278bcf3e868)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
e9820e1b6e r3240: - update the rules for what error codes should be given on the
different type of unlink an seach mismatches

- wildcard directory listings that have attribute
  FILE_ATTRIBUTE_DIRECTORY and match "." or ".." should be failed.

- don't set the write_time on SMBclose unless it is non-zero

- added much better support for setfileinfo and setpathinfo in pvfs

- better (and more efficient) handling of .. and . components in filenames
(This used to be commit 9305b07af395a158cb9f0c1c9486f7122c79d357)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
84bbf02e95 r3239: reads of more than UINT16_MAX bytes should return 0 bytes
(This used to be commit 16c7dd641707b6b8b3159290ca9fa08053a10692)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
0b6c611b11 r3238: rename null_mtime() to the more accurate name "null_time()", and
expose it for use by the posix backend
(This used to be commit 687633b5d68c8f883a4d9cdd92c660dabc5d7cfa)
2007-10-10 13:04:44 -05:00
Andrew Tridgell
fef66179dd r3237: - allow for readx calls larger than 64k
- combine setattre and standard levels in setfileinfo, as they use the
  same structure
(This used to be commit e9aa1f789955533aca4fe43d5d74ffa1e8d1300b)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
3511e5e806 r3236: test a few more combinations in RAW-UNLINK
(This used to be commit 5b239ad57be93fabd50760b12878e32df53e939d)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
1f7fbaf493 r3235: try readx beyond 64k in RAW-READ
(This used to be commit e07c557eca19c0dc17473090bde45c27953aaf65)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
ea43c2a3ed r3234: in SMBreadx, if the client asks for exactly 65535 bytes then don't try
to align the buffer, as that would make the read reply not fit
(This used to be commit 70be45de05993d386ceaf54325d1c3023008eaed)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
d5fd12648e r3227: added a per-share option "case insensitive filesystem", that tells the
backend that the underlying filesystem is case insensitive, so it can
bypass the directory search if the name is not found.
(This used to be commit d84ade90ce7e03ec749d6ae8dcdcb41de85d836e)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
bf3f9757e5 r3224: add the LOCAL-* tests to test_posix.sh
(This used to be commit b2bdde6d14e61f8ad9e7cbb28efb97ce1bc1ec67)
2007-10-10 13:04:43 -05:00