1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

376 Commits

Author SHA1 Message Date
Andrew Tridgell
1cd412aa19 r21234: fixed a subtle bug with talloc reference counting and async ntvfs
requests.
(This used to be commit 6a2ba01f155266add71319c1dbc3442eb0c2c751)
2007-10-10 14:44:50 -05:00
Volker Lendecke
4c9efad4b8 r21042: Fix typo
(This used to be commit eb83537a3b4889353cdc9bb471315a77e1f87c90)
2007-10-10 14:44:24 -05:00
Stefan Metzmacher
f40182cb12 r20897: fix compiler warnings
metze
(This used to be commit 5ac562e1e0e8de03c8bcd083a1822b31667c5e21)
2007-10-10 14:43:48 -05:00
Andrew Tridgell
20b406ce23 r20890: spelling fix
(This used to be commit 507266b951272534f0a0bad5fd5e2450438dcdf1)
2007-10-10 14:43:46 -05:00
Andrew Tridgell
427fa23ca5 r20698: added AIO writing support
(This used to be commit dbf54c7b49d427af8112414760369cd21c8b5941)
2007-10-10 14:40:24 -05:00
Andrew Tridgell
1cd4339b9a r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
(This used to be commit 2365abaa991d57d68c6ebe9be608e01c907102eb)
2007-10-10 14:37:23 -05:00
Andrew Tridgell
e0e96ae80d r20624: added AIO read to pvfs backend
(This used to be commit d6e20d6d8c5c207e7f04b0d0523224437b209917)
2007-10-10 14:37:16 -05:00
Jelmer Vernooij
273d5f8666 r19671: Fix remaining unresolved symbols in shared library build.
Fix starting tests in shared library build.
(This used to be commit 3b65a0d6e491a57ed216dc0cd9c31d46e0cb6a35)
2007-10-10 14:25:27 -05:00
Andrew Tridgell
d6c003083c r19508: fixed SMB2-SETINFO
the pvfs_acl_xattr backend was not being initialised
(This used to be commit 44c897764e6e2b9cfc4398fd3df52dc3eda6b341)
2007-10-10 14:24:42 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067a4800b07b8919a6a475954bfb0b04c)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
515c92a759 r19441: work in progress support for NFS4 ACLs in Samba4 on Linux. Still work
to do, particularly with getting the detailed bit mappings right, and
on sid mapping. Does not pass RAW-ACLS yet
(This used to be commit b92553481b534d0ef5277dbfe8c0d64a03f819eb)
2007-10-10 14:21:32 -05:00
Andrew Tridgell
2338e97832 r19199: split out the xattr NTACL code into a separate part of the posix
backend, allowing other ACL backends to be added. The xattr backend is
still the default backend
(This used to be commit 90f044e63b12d32228310c7529382198bd7e6dfe)
2007-10-10 14:20:52 -05:00
Andrew Tridgell
921f73c7e5 r18835: expand IO limits on SMB2. Samba4 now tops out at 16.7MB IOs.
(This used to be commit 1e34e4d5a1fd3d74080424140e4ab276b6042d12)
2007-10-10 14:19:16 -05:00
Andrew Tridgell
c5e67b8555 r18581: also check for SEC_STD_DELETE, and split out the check into a separate
static function
(This used to be commit 024ca6a91cdf2c0f8999c220b4459a72c45bfd32)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
9c53e14602 r18580: map the PVFS_FLAG_READONLY bit in the posix backend onto
NT_STATUS_ACCESS_DENIED in the access mask checks
(This used to be commit ceffc34f3e9f47a8a44dad52054688f9855eeb37)
2007-10-10 14:18:51 -05:00
Andrew Tridgell
3dc237eb28 r18342: a bit more explanation of these strange values
(This used to be commit e191f84f24e017d90c49d779a04a5306d96848a5)
2007-10-10 14:18:13 -05:00
Andrew Tridgell
06bc06cf08 r18341: ooh this gets subtle - this needed for xfs on linux
(This used to be commit 9d688eb9cbaed484ccb75d601c2331760bd59fab)
2007-10-10 14:18:12 -05:00
Andrew Tridgell
89efea81d9 r18319: fixed the directory search resume code on IRIX
The problem was twofold:

  1) irix returns 64 bit numbers in telldir(). The protocol uses a 32
     bit resume key. We now cope with this properly using the code in
     pvfs_list_seek_ofs().

  2) irix returns 0xFFFFFFFF from telldir() for the last entry in the
     directory. When added to DIR_OFFSET_BASE this became
     DIR_OFFSET_DOTDOT which meant an infinite loop!
(This used to be commit 8cce9740ed0da9f08d6821beb4acaa9d28d149c2)
2007-10-10 14:18:08 -05:00
Simo Sorce
b0f6a94d9a r18314: Handle the case where a dir has the sticky bit set and the OS gives back
EPERM when trying to access user xattrs. Just pretend no attributes are set.

Simo.
(This used to be commit 53463ca7969e76f9fb2bc7c5a023d23732e422f5)
2007-10-10 14:18:06 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
5987aace3b r17776: these macros are also defined in libcli/raw/trans2.h
metze
(This used to be commit 58e7fa037571a3a9fab46945e6158687fff54a17)
2007-10-10 14:16:40 -05:00
Stefan Metzmacher
ec626a732c r17753: fix compiler warnings and make the code simpler
metze
(This used to be commit eda302ffa5458a34f78d733cd0a46e79a74e81d7)
2007-10-10 14:16:37 -05:00
Stefan Metzmacher
312ded39cc r17752: using -1 in a uint16_t value causes compiler warnings,
use UINT16_MAX as invalid search handle

metze
(This used to be commit a4e19d6cc4cce611241c502de485dbd2496be0d3)
2007-10-10 14:16:37 -05:00
Andrew Tridgell
b950a91fb2 r17656: some systems (like older solaris) don't return ENOTEMPTY on rmdir()
with non-empty directory
(This used to be commit 1775381afad8a97777a45b6e98802dda8b389ecb)
2007-10-10 14:16:20 -05:00
Andrew Bartlett
8c291e67c5 r17520: If the blkid library fails, I don't see any reason to return more of
an error than if we don't have it.  We might not be on a volume that
can store/return such a GUID.

(Try to fix one of the build farm failures).

Andrew Bartlett
(This used to be commit 73d6651f3c06d0d3bbfd9fe1a9d0f76fe19ba4af)
2007-10-10 14:15:32 -05:00
Stefan Metzmacher
529c5dae51 r17362: session_info and smbpid are available from the ntvfs_handle
so we don't need them on the pvfs_file struct.

also we don't need to check is the handle has the correct session
as this is job of the frontend server

metze
(This used to be commit c83501335f245ac73b9d53c12efee3d46b8c5b05)
2007-10-10 14:15:19 -05:00
Stefan Metzmacher
7b52d77eb5 r17359: http://www.cs.wisc.edu/~cao/cs739/draft-leach-cifs-v1-spec-01.txt
says that with the 0xffff fid all files only for the given pid
should be flushed

Does samba3 handle this correct?

metze
(This used to be commit 7cf6eae23bf5b944ce6e419105d6cf195b368319)
2007-10-10 14:15:18 -05:00
Simo Sorce
9c66f601f1 r17206: Add a modular API for share configuration.
Commit the classic backwards compatible module which is the default one
(This used to be commit a89cc346b9296cb49929898d257a064a6c2bae86)
2007-10-10 14:10:18 -05:00
Stefan Metzmacher
e1248154d6 r17088: add ntvfs mapping function for notify
metze
(This used to be commit 7daf432d58ecebd10a28acd3ddbded9cb16536d0)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
bdf914a39d r17087: - make pvfs_notify_next_send static
- fix double free:
  a talloc_reference(a,b) when a is a child of b
  doesn't prevent talloc_free(b) from destroiying a and b.

metze
(This used to be commit 41acbc6645cc22d7f5f061dc5eda9b938ca018ba)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
4c499cb45f r17008: on SMB2 Create the delete_on_close flag isn't ignored for
existing opened files as it is for SMB.

metze
(This used to be commit bcf09a769e241de36abed17f22aa0534d87cf4ff)
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
a8958391e8 r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
- parse SMB2 Notify reponse

metze
(This used to be commit de50e0ccddfad16ad7b254770f4c52c1abe707b9)
2007-10-10 14:10:06 -05:00
Stefan Metzmacher
3b36a85798 r16950: remove the smb mid from the ntvfs layer and keep a list of pending
requests on the smbsrv_connection, to be able to match then on
ntcancel

metze
(This used to be commit 04f0d3d03179b6060fd013b867d13caa92ec6460)
2007-10-10 14:10:02 -05:00
Stefan Metzmacher
5468516f9a r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
the operation doesn't need a valid file handle in that case

metze
(This used to be commit d41a83d55945b07020349339888f3a34ac4eff4e)
2007-10-10 14:10:00 -05:00
Stefan Metzmacher
eb75ecbccf r16889: implement SMB2 Ioctl in the frontend
metze
(This used to be commit 90b0ae53e40a220249b55035411e6b60ee04de7c)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
42248766d4 r16876: implement SMB2 Find in the posix ntvfs backend
metze
(This used to be commit 4f1afda488f2fb5cfcf98ef6a56157f954fdccfc)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
af0a9eb529 r16834: split the level's of smb_search_first/smb_search_next and the levels
of smb_search_data

metze
(This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9)
2007-10-10 14:09:49 -05:00
Stefan Metzmacher
c063450a1e r16724: fix typo...
metze
(This used to be commit 9b036d788ceb4eeae28531db8aa5e297c775f35a)
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
ef4475adc4 r16706: for RAW_SFILEINFO_SETATTR attrib == 0 means set it to FILE_ATTRIB_NORMAL
and attrib == FILE_ATTRIB_NORMAL means no change...

but for RAW_SFILEINFO_BASIC_INFORMATION attrib == 0 means no change

metze
(This used to be commit e1945feda09a56b6f55bd0f7ab591f3bd069be67)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
7743106635 r16468: implement SMB2_ALL_INFORMATION in the posix backend
metze
(This used to be commit 1bce493cbc003db37e9ea94c20019990e1eb785a)
2007-10-10 14:09:30 -05:00
Andrew Bartlett
ca62ddd8d9 r16051: Move the XATTR compatability code into a new file, so I can use it for
the getntacl utility.

Andrew Bartlett
(This used to be commit b1e0d4747b412929e1d4e24d6d9e504df3ddc824)
2007-10-10 14:08:53 -05:00
Stefan Metzmacher
dc4ccc6f65 r16024: OpenBSD doesn't have ENOTSUP so use ENOSYS
metze
(This used to be commit 505d55de69e1c5a9e763534dd392caac79e49ff1)
2007-10-10 14:08:51 -05:00
Stefan Metzmacher
18cc835e8a r16013: hopefully fix the configure check for darwin
metze
(This used to be commit 88b7d4206407aba74f3f6d56a8c88ef847731b12)
2007-10-10 14:08:50 -05:00
Stefan Metzmacher
b20d76085b r16009: fix the build
metze
(This used to be commit d53562f126c374ff93f368cb2e8a247762b3395b)
2007-10-10 14:08:50 -05:00
Stefan Metzmacher
22367ca76e r16008: make debugging easier, and use the os name in the function name
(I'll add a bsd wrapping later)

metze
(This used to be commit 2ce4a2da29dd18b92580014cc765c0f950fb74df)
2007-10-10 14:08:49 -05:00
Stefan Metzmacher
9a9a99b90a r16006: only (f)getxattr returns ssize_t
metze
(This used to be commit d4af8da7c9b4c510ceb1ef96f6ff4bbf717a16d9)
2007-10-10 14:08:49 -05:00
Stefan Metzmacher
8f553ab4a1 r16005: add support for XATTR's on MacOS
Thanks to Bjoern Jacke for his help.

metze
(This used to be commit 8f8480e453ced38cbf27d0a1a45843c5eb126016)
2007-10-10 14:08:49 -05:00
Stefan Metzmacher
f6a3c29ede r16004: - move #ifdef outof the real functions
- hopefully all build-farm hosts have ENOTSUP...

metze
(This used to be commit 62c64f1ddc71436aab6a2f3f2ecc3e6dcb752db9)
2007-10-10 14:08:48 -05:00
Andrew Tridgell
92acfc0799 r15855: more talloc_set_destructor() typesafe fixes. nearly done ...
(This used to be commit 396d82a231b6e3a91178db08b706626d4d4b420c)
2007-10-10 14:08:33 -05:00
Andrew Tridgell
971d30bb20 r15854: more talloc_set_destructor() typesafe fixes
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
2007-10-10 14:08:32 -05:00