metze/samba/wip.git
12 years agoTMP - add some debug
Michael Adam [Sat, 18 Feb 2012 17:17:26 +0000 (18:17 +0100)]
TMP - add some debug

12 years agos3:smbd:smb2_create_send: add some debug
Michael Adam [Sat, 18 Feb 2012 17:16:10 +0000 (18:16 +0100)]
s3:smbd:smb2_create_send: add some debug

12 years agoSQUASH fix a comment typo
Michael Adam [Sat, 18 Feb 2012 16:54:49 +0000 (17:54 +0100)]
SQUASH fix a comment typo

12 years agodurable_reopen: It does not crash any more... :)
Michael Adam [Sat, 18 Feb 2012 15:46:57 +0000 (16:46 +0100)]
durable_reopen: It does not crash any more... :)

12 years agodurable reconnect: fix return code if SMB_VFS_OPEN failed.
Michael Adam [Sat, 18 Feb 2012 15:38:57 +0000 (16:38 +0100)]
durable reconnect: fix return code if SMB_VFS_OPEN failed.

12 years agodurable_reconnect: fix a segfault
Michael Adam [Sat, 18 Feb 2012 15:30:19 +0000 (16:30 +0100)]
durable_reconnect: fix a segfault

12 years agos3:smbd:smb2_create: add some comment
Michael Adam [Sat, 18 Feb 2012 15:30:03 +0000 (16:30 +0100)]
s3:smbd:smb2_create: add some comment

12 years agoTMP durable reconnect: add some debug
Michael Adam [Sat, 18 Feb 2012 13:18:52 +0000 (14:18 +0100)]
TMP  durable reconnect: add some debug

12 years agoTMP - durable_reconnect: add some debug
Michael Adam [Sat, 18 Feb 2012 13:11:36 +0000 (14:11 +0100)]
TMP - durable_reconnect: add some debug

12 years agoTMP - add some debug (durable reconnect)
Michael Adam [Sat, 18 Feb 2012 13:08:56 +0000 (14:08 +0100)]
TMP - add some debug (durable reconnect)

12 years agodurable reconnect - create dhnq response blob for successful durable reconnect
Michael Adam [Sat, 18 Feb 2012 12:52:16 +0000 (13:52 +0100)]
durable reconnect - create dhnq response blob for successful durable reconnect

12 years agosmb2 durable reconnect attempts -- it compiles :-o --- INCOMPLETE
Michael Adam [Fri, 17 Feb 2012 17:18:14 +0000 (18:18 +0100)]
smb2 durable reconnect attempts -- it compiles :-o  --- INCOMPLETE

12 years agodurable-reopen - adapt a comment
Michael Adam [Fri, 17 Feb 2012 17:00:52 +0000 (18:00 +0100)]
durable-reopen - adapt a comment

12 years agoUNFINISHED - move the call to durable reconnect further down,
Michael Adam [Fri, 17 Feb 2012 16:49:54 +0000 (17:49 +0100)]
UNFINISHED - move the call to durable reconnect further down,

in parallel to the SMB_VFS_CREATE() call. We need some info
(like smb_fname).

12 years agoSQUASH - DOES NOT COMPILE - work towards durable reconnect
Michael Adam [Tue, 14 Feb 2012 15:00:55 +0000 (16:00 +0100)]
SQUASH - DOES NOT COMPILE - work towards durable reconnect

12 years agoDOES NOT COMPILE - call file_new and SMB_VFS_OPEN
Michael Adam [Tue, 14 Feb 2012 00:02:52 +0000 (01:02 +0100)]
DOES NOT COMPILE - call file_new and SMB_VFS_OPEN

12 years agoSQUASH - comment
Michael Adam [Mon, 13 Feb 2012 23:39:00 +0000 (00:39 +0100)]
SQUASH - comment

12 years agoTODO smb2_create_durable_reconnect: release the sharemode lock at the end
Michael Adam [Mon, 13 Feb 2012 22:00:30 +0000 (23:00 +0100)]
TODO smb2_create_durable_reconnect: release the sharemode lock at the end

(temporary this way, there is still stuff missing in between)

12 years agosmb2_create_durable_reconnect: update the pid in the share-mode entry from the smbXsr...
Michael Adam [Mon, 13 Feb 2012 21:59:53 +0000 (22:59 +0100)]
smb2_create_durable_reconnect: update the pid in the share-mode entry from the smbXsrv_open

12 years agoSQUASH smb2_create_durable_reconnect: re-add a TODO comment part that got dropped
Michael Adam [Mon, 13 Feb 2012 21:55:29 +0000 (22:55 +0100)]
SQUASH smb2_create_durable_reconnect: re-add a TODO comment part that got dropped

12 years agosmb2_create_durable_reconnect: refetch the share mode entry with lock
Michael Adam [Mon, 13 Feb 2012 21:03:43 +0000 (22:03 +0100)]
smb2_create_durable_reconnect: refetch the share mode entry with lock

12 years agosmb2_create_durable_reconnect: change a comment
Michael Adam [Mon, 13 Feb 2012 21:01:46 +0000 (22:01 +0100)]
smb2_create_durable_reconnect: change a comment

12 years agosmb2_create_durable_reconnect: change a comment
Michael Adam [Mon, 13 Feb 2012 21:01:25 +0000 (22:01 +0100)]
smb2_create_durable_reconnect: change a comment

12 years agosmb2_create_durable_reconnect: change a comment
Michael Adam [Mon, 13 Feb 2012 21:00:45 +0000 (22:00 +0100)]
smb2_create_durable_reconnect: change a comment

12 years agosmb2_create_durable_reconnect: fix typo in comment
Michael Adam [Mon, 13 Feb 2012 20:48:48 +0000 (21:48 +0100)]
smb2_create_durable_reconnect: fix typo in comment

12 years agocleanup invalid pid in locking on modify
Stefan Metzmacher [Mon, 13 Feb 2012 14:46:15 +0000 (15:46 +0100)]
cleanup invalid pid in locking on modify

12 years agosq only one invaliud
Stefan Metzmacher [Mon, 13 Feb 2012 14:36:47 +0000 (15:36 +0100)]
sq only one invaliud

12 years agoupdate TODO in smb2_create_durable_reconnect
Stefan Metzmacher [Mon, 13 Feb 2012 14:35:03 +0000 (15:35 +0100)]
update TODO in smb2_create_durable_reconnect

12 years agoshare_mode_lock only keep invalid if it's the only entry
Stefan Metzmacher [Mon, 13 Feb 2012 14:34:38 +0000 (15:34 +0100)]
share_mode_lock only keep invalid if it's the only entry

12 years agoshare conflict invalid pid...
Stefan Metzmacher [Mon, 13 Feb 2012 14:34:10 +0000 (15:34 +0100)]
share conflict invalid pid...

12 years agosq recreate
Stefan Metzmacher [Mon, 13 Feb 2012 14:33:56 +0000 (15:33 +0100)]
sq recreate

12 years agoserver id per open
Stefan Metzmacher [Mon, 13 Feb 2012 14:05:15 +0000 (15:05 +0100)]
server id per open

12 years agosmb2srv_open_recreate
Stefan Metzmacher [Mon, 13 Feb 2012 14:04:40 +0000 (15:04 +0100)]
smb2srv_open_recreate

12 years agodon't talloc_free(open)
Stefan Metzmacher [Mon, 13 Feb 2012 14:02:09 +0000 (15:02 +0100)]
don't talloc_free(open)

12 years agodon't use 'open'
Stefan Metzmacher [Mon, 13 Feb 2012 14:01:40 +0000 (15:01 +0100)]
don't use 'open'

12 years agooplock don't conflict with invalid pid
Stefan Metzmacher [Mon, 13 Feb 2012 13:11:55 +0000 (14:11 +0100)]
oplock don't conflict with invalid pid

12 years agosmb2 durable close vs. normal close...
Stefan Metzmacher [Mon, 13 Feb 2012 13:11:25 +0000 (14:11 +0100)]
smb2 durable close vs. normal close...

12 years agoTODO s3:smbd: close all files per smb2 session before closing tcons
Stefan Metzmacher [Mon, 13 Feb 2012 13:09:48 +0000 (14:09 +0100)]
TODO s3:smbd: close all files per smb2 session before closing tcons

This will be important for durable opens.

metze

12 years agoHACKS - bug 8760
Stefan Metzmacher [Mon, 13 Feb 2012 13:07:57 +0000 (14:07 +0100)]
HACKS - bug 8760

special UINTxy_MAX as server-id

12 years agoMOVE Revert "TMP dbwrap: db_open() - add debug"
Christian Ambach [Thu, 1 Mar 2012 20:54:53 +0000 (12:54 -0800)]
MOVE Revert "TMP dbwrap: db_open() - add debug"

This reverts commit af3c208c1c344b459063af518db78e1cee57c807.

12 years agoRevert "TMP - some dbwrap lock order debugging"
Christian Ambach [Thu, 1 Mar 2012 20:54:33 +0000 (12:54 -0800)]
Revert "TMP - some dbwrap lock order debugging"

This reverts commit 0fdd9ba0e1ab66615d100c2c06f3ceaccd82d59b.

12 years agoTMP dbwrap: db_open() - add debug
Stefan Metzmacher [Mon, 13 Feb 2012 13:06:33 +0000 (14:06 +0100)]
TMP dbwrap: db_open() - add debug

12 years agoTMP - some dbwrap lock order debugging
Stefan Metzmacher [Mon, 13 Feb 2012 13:06:13 +0000 (14:06 +0100)]
TMP - some dbwrap lock order debugging

12 years agodebug
Stefan Metzmacher [Mon, 13 Feb 2012 10:13:32 +0000 (11:13 +0100)]
debug

12 years agoreach NT_STATUS_NOT_IMPLEMENTED
Stefan Metzmacher [Mon, 13 Feb 2012 10:12:39 +0000 (11:12 +0100)]
reach NT_STATUS_NOT_IMPLEMENTED

12 years agofix the build
Stefan Metzmacher [Mon, 13 Feb 2012 08:40:37 +0000 (09:40 +0100)]
fix the build

12 years agoUNFINISHED - does not compile - work on durable reconnect
Michael Adam [Sun, 12 Feb 2012 12:20:28 +0000 (13:20 +0100)]
UNFINISHED - does not compile - work on durable reconnect

12 years agoprinters...
Stefan Metzmacher [Fri, 10 Feb 2012 14:36:02 +0000 (15:36 +0100)]
printers...

12 years agoUNFINISHED - smb2_create: start implementing durable reconnect
Michael Adam [Sat, 11 Feb 2012 00:46:22 +0000 (01:46 +0100)]
UNFINISHED - smb2_create: start implementing durable reconnect

12 years agodon't we need a "durable" flag in the global open structure?
Michael Adam [Sat, 11 Feb 2012 00:41:55 +0000 (01:41 +0100)]
don't we need a "durable" flag in the global open structure?

12 years agosmb2_create.c: remove a comment (allocation of persistent_id is now done)
Michael Adam [Sat, 11 Feb 2012 00:20:39 +0000 (01:20 +0100)]
smb2_create.c: remove a comment (allocation of persistent_id is now done)

12 years agofix autoconf build
Christian Ambach [Thu, 1 Mar 2012 01:12:22 +0000 (17:12 -0800)]
fix autoconf build

12 years agosmbXsrv_open.c: fix a return code (by copy from smbXsrv_session.c)
Michael Adam [Fri, 10 Feb 2012 23:49:45 +0000 (00:49 +0100)]
smbXsrv_open.c: fix a return code (by copy from smbXsrv_session.c)

12 years agos3:smbd:smb2: add smb2srv_open_global_lookup() - look up in global open db by persist...
Michael Adam [Fri, 10 Feb 2012 23:05:34 +0000 (00:05 +0100)]
s3:smbd:smb2: add smb2srv_open_global_lookup() - look up in global open db by persistent id

12 years agosmbXsrv_open.c - some space fix
Michael Adam [Fri, 10 Feb 2012 23:03:06 +0000 (00:03 +0100)]
smbXsrv_open.c - some space fix

12 years agosmbXsrv.idl: add file_id to the open_global structure
Michael Adam [Fri, 10 Feb 2012 23:11:17 +0000 (00:11 +0100)]
smbXsrv.idl: add file_id to the open_global structure

so that we can look up the backend info in the locking.tdb

This is a preliminary hack. Later we should use a
"DATA_BLOB backend_info" with pack/unpack functions
so that the implementation is hidden from the
smb layer.

12 years agoopen... printer
Stefan Metzmacher [Fri, 10 Feb 2012 12:43:17 +0000 (13:43 +0100)]
open... printer

12 years agoTODO open_time / open_path
Stefan Metzmacher [Fri, 10 Feb 2012 09:02:40 +0000 (10:02 +0100)]
TODO open_time / open_path

12 years agodon't limit global persistent open ids to 16bit
Stefan Metzmacher [Fri, 10 Feb 2012 08:50:51 +0000 (09:50 +0100)]
don't limit global persistent open ids to 16bit

12 years agolock ...
Stefan Metzmacher [Fri, 10 Feb 2012 08:45:59 +0000 (09:45 +0100)]
lock ...

12 years agosplit persistene and volatile ids
Stefan Metzmacher [Fri, 10 Feb 2012 08:35:25 +0000 (09:35 +0100)]
split persistene and volatile ids

12 years agoothers persistent check
Stefan Metzmacher [Fri, 10 Feb 2012 08:23:59 +0000 (09:23 +0100)]
others persistent check

12 years agowrite check persistent_id
Stefan Metzmacher [Fri, 10 Feb 2012 07:12:16 +0000 (08:12 +0100)]
write check persistent_id

12 years agosmb2_create: hand out the persistent and volatile IDs gotten from the smbXsrv open...
Michael Adam [Thu, 9 Feb 2012 23:55:59 +0000 (00:55 +0100)]
smb2_create: hand out the persistent and volatile IDs gotten from the smbXsrv open code

(instead of the fnum)

12 years agoupdate (C) smbXsrv_session.c
Michael Adam [Thu, 9 Feb 2012 21:28:40 +0000 (22:28 +0100)]
update (C) smbXsrv_session.c

(ich hab da ja auch bisschn mitgemacht bei den letzten änderungen...:)

12 years agohack durable open...
Stefan Metzmacher [Thu, 9 Feb 2012 21:06:28 +0000 (22:06 +0100)]
hack durable open...

12 years agosmb2 works
Stefan Metzmacher [Thu, 9 Feb 2012 18:34:07 +0000 (19:34 +0100)]
smb2 works

12 years agouse it...
Stefan Metzmacher [Thu, 9 Feb 2012 17:47:31 +0000 (18:47 +0100)]
use it...

12 years agosmb1 add open table
Stefan Metzmacher [Tue, 13 Mar 2012 10:09:17 +0000 (11:09 +0100)]
smb1 add open table

12 years agos3:smbd: make smbXsrv_open.c compile
Michael Adam [Thu, 9 Feb 2012 11:14:14 +0000 (12:14 +0100)]
s3:smbd: make smbXsrv_open.c compile

12 years agos3:smbd: add a smbXsrv_open_table member to smbXsrv_connection (for now)
Michael Adam [Thu, 9 Feb 2012 11:13:08 +0000 (12:13 +0100)]
s3:smbd: add a smbXsrv_open_table member to smbXsrv_connection (for now)

Ultimately, for SMB2 at least, the open table could be subordinate to
the session. For SMB1, it needs to be subordinate to the connection.

12 years agos3:smbd: define struct smbXsrv_open_table
Michael Adam [Thu, 9 Feb 2012 11:12:29 +0000 (12:12 +0100)]
s3:smbd: define struct smbXsrv_open_table

12 years agoTODO - smbXsrv_open : some changes
Michael Adam [Wed, 8 Feb 2012 23:30:35 +0000 (00:30 +0100)]
TODO - smbXsrv_open : some changes

12 years agochange it ...
Stefan Metzmacher [Wed, 8 Feb 2012 18:31:08 +0000 (19:31 +0100)]
change it ...

12 years agobuild smbd/smbXsrv_open.c
Stefan Metzmacher [Wed, 8 Feb 2012 18:28:32 +0000 (19:28 +0100)]
build smbd/smbXsrv_open.c

12 years agoUNFINISHED - add smbXsrv_open.c - adapt from smbXsrv_session.c
Michael Adam [Tue, 7 Feb 2012 11:01:05 +0000 (12:01 +0100)]
UNFINISHED -  add smbXsrv_open.c - adapt from smbXsrv_session.c

12 years agoTODO - s3:smbXsrv.idl: add structures for open files
Stefan Metzmacher [Mon, 6 Feb 2012 22:06:41 +0000 (23:06 +0100)]
TODO - s3:smbXsrv.idl: add structures for open files

especialy contains the persistent file id.

Pair-Programmed-With: Michael Adam <obnox@samba.org>

12 years agoTODO: s3:smbXsrv.idl: comment out some (yet) unused session struct members
Stefan Metzmacher [Mon, 6 Feb 2012 22:05:03 +0000 (23:05 +0100)]
TODO: s3:smbXsrv.idl: comment out some (yet) unused session struct members

12 years agos3:smbXsrv.idl: add a comment
Michael Adam [Mon, 6 Feb 2012 22:04:16 +0000 (23:04 +0100)]
s3:smbXsrv.idl: add a comment

12 years agoTMP: source3/smbd/smb2_close.c - add some DEBUG
Stefan Metzmacher [Mon, 6 Feb 2012 22:02:08 +0000 (23:02 +0100)]
TMP: source3/smbd/smb2_close.c - add some DEBUG

12 years agoTODO: some comments in preparation of durable handle open hack
Michael Adam [Mon, 6 Feb 2012 00:15:25 +0000 (01:15 +0100)]
TODO: some comments in preparation of durable handle open hack

12 years agoTODO s3:smbd: implement the smb2_create durable-handle request
Stefan Metzmacher [Fri, 3 Feb 2012 16:58:38 +0000 (17:58 +0100)]
TODO s3:smbd: implement the smb2_create durable-handle request

12 years agoRevert "vuid => session_id"
Stefan Metzmacher [Tue, 7 Feb 2012 09:12:30 +0000 (10:12 +0100)]
Revert "vuid => session_id"

This reverts commit f75fc237481172b58460e1c1b54d4e9bc16f24ee.

12 years agovuid => session_id
Stefan Metzmacher [Fri, 3 Feb 2012 15:00:04 +0000 (16:00 +0100)]
vuid => session_id

12 years agouse smbXsrv_session step1
Stefan Metzmacher [Fri, 3 Feb 2012 09:57:50 +0000 (10:57 +0100)]
use smbXsrv_session step1

12 years agos3:smb2:sesssetup: s/session/smb2sess
Stefan Metzmacher [Fri, 3 Feb 2012 09:33:53 +0000 (10:33 +0100)]
s3:smb2:sesssetup: s/session/smb2sess

This prepares the following commits.

metze

12 years agoHACK: smbXsrv_session limit to UINT16_MAX for now
Stefan Metzmacher [Fri, 3 Feb 2012 12:37:31 +0000 (13:37 +0100)]
HACK: smbXsrv_session limit to UINT16_MAX for now

12 years agosmbXsrv_session_update and lookup fixes
Stefan Metzmacher [Fri, 3 Feb 2012 12:37:02 +0000 (13:37 +0100)]
smbXsrv_session_update and lookup fixes

12 years agosmbXsrv_session destructor
Stefan Metzmacher [Fri, 3 Feb 2012 10:33:09 +0000 (11:33 +0100)]
smbXsrv_session destructor

12 years agoimpove session setup code: functions for finding free session ids
Stefan Metzmacher [Wed, 1 Feb 2012 12:15:50 +0000 (13:15 +0100)]
impove session setup code: functions for finding free session ids

12 years agosmbXsrv_session...
Stefan Metzmacher [Tue, 31 Jan 2012 10:30:10 +0000 (11:30 +0100)]
smbXsrv_session...

12 years agoHACK use smbXsrv_session
Stefan Metzmacher [Thu, 15 Dec 2011 13:45:56 +0000 (14:45 +0100)]
HACK use smbXsrv_session

12 years agosmbXsrv_session.c
Stefan Metzmacher [Thu, 15 Dec 2011 13:45:56 +0000 (14:45 +0100)]
smbXsrv_session.c

12 years agosmbXsrv.idl
Stefan Metzmacher [Thu, 15 Dec 2011 13:45:56 +0000 (14:45 +0100)]
smbXsrv.idl

12 years agoRevert "s3:smbd: introduce struct smbXsrv_connection"
Stefan Metzmacher [Mon, 12 Mar 2012 18:26:32 +0000 (19:26 +0100)]
Revert "s3:smbd: introduce struct smbXsrv_connection"

This reverts commit 8d459aa9fba80782d8f3a1fc179702c0067d4ba1.

12 years agoRevert "s3:librpc: add smbXsrv.idl"
Stefan Metzmacher [Fri, 20 Apr 2012 12:36:31 +0000 (14:36 +0200)]
Revert "s3:librpc: add smbXsrv.idl"

This reverts commit 443dad4f14ec0bccf882da669c4c375b35acec15.

12 years agoRevert "TODO s3:smbXsrv.idl: add smbXsrv_session* structures"
Stefan Metzmacher [Mon, 12 Mar 2012 18:26:14 +0000 (19:26 +0100)]
Revert "TODO s3:smbXsrv.idl: add smbXsrv_session* structures"

This reverts commit 373a179f78da4fbe3984045b33ee32d800cc64cb.

12 years agoRevert "TODO NDR_SMBXSRV before? s3:smbd: add smbXsrv_session infrastructure"
Stefan Metzmacher [Mon, 12 Mar 2012 18:26:10 +0000 (19:26 +0100)]
Revert "TODO NDR_SMBXSRV before? s3:smbd: add smbXsrv_session infrastructure"

This reverts commit 99a1ee657d6a70a7f3036999ed068cc19a31be31.

12 years agoRevert "s3:smbd: call file_close_user() before removing tree connects in conn_close_a...
Stefan Metzmacher [Mon, 12 Mar 2012 18:26:06 +0000 (19:26 +0100)]
Revert "s3:smbd: call file_close_user() before removing tree connects in conn_close_all()"

This reverts commit a36c813660e79e5717f987f5f74d95931696e09d.

12 years agoRevert "TODO s3:smbXsrv.idl: add smbXsrv_open*"
Stefan Metzmacher [Mon, 12 Mar 2012 18:26:02 +0000 (19:26 +0100)]
Revert "TODO s3:smbXsrv.idl: add smbXsrv_open*"

This reverts commit 3425903e3dc2a0393856d49becccf582bab0f0ad.