summaryrefslogtreecommitdiffstats
path: root/source3/utils/status.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:smbstatus add --fast optionChristian Ambach2012-07-181-4/+11
| | | | | | this option skips all checks if the process for the record is still there using it gives a huge performance benefit on busy systems and clusters while it might display stale data if a smbd crashed
* s3:smbstatus don't check if process exists twiceChristian Ambach2012-07-181-4/+0
| | | | is_valid_share_mode_entry() already calls serverid_exists which calls process_exists()
* s3:smbstatus rename a function to make its purpose more clearChristian Ambach2012-07-181-4/+4
| | | | traverse_fn1 does not really intuitively make clear that it is used to traverse connections
* s3:smbstatus fix a compiler warningChristian Ambach2012-07-181-1/+1
| | | | about comparison of signed with unsigned
* s3:util: rename procid_equal() to serverid_equal()Michael Adam2012-06-211-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbstatus: use procid_equal() instead of equivalent cluster_id_equal()Michael Adam2012-06-211-1/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tidMichael Adam2012-06-061-1/+1
| | | | Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3:utils: use smbd/smbd.h instead of just smbd/proto.hStefan Metzmacher2012-06-061-1/+1
| | | | | | This fixes compiler warnings regarding incomplete types. metze
* s3:lib: split things into a conn_tdb.hStefan Metzmacher2012-06-051-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
* s3: Add smbstatus -N to output the notify dbVolker Lendecke2012-04-171-0/+40
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Apr 17 11:54:35 CEST 2012 on sn-devel-104
* s3-auth: Remove security=share (depricated since 3.6).Andrew Bartlett2012-03-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes security=share, which Samba implemented by matching the per-share password provided by the client in the Tree Connect with a selection of usernames supplied by the client, the smb.conf or guessed from the environment. The rationale for the removal is that for the bulk of security=share users, we just we need a very simple way to run a 'trust the network' Samba server, where users mark shares as guest ok. This is still supported, and the smb.conf options are documented at https://wiki.samba.org/index.php/Public_Samba_Server At the same time, this closes the door on one of the most arcane areas of Samba authentication. Naturally, full user-name/password authentication remain available in security=user and above. This includes documentation updates for username and only user, which now only do a small amount of what they used to do. Andrew Bartlett -------------- / \ / REST \ / IN \ / PEACE \ / \ | SEC_SHARE | | security=share | | | | | | 5 March | | | | 2012 | *| * * * | * _________)/\\_//(\/(/\)/\//\/\///|_)_______
* s3: Add a "lock_order" argument to db_openVolker Lendecke2012-01-181-1/+2
| | | | | | | This will be used to enforce a lock hierarchy between the databases. We have seen deadlocks between locking.tdb, brlock.tdb, serverid.tdb and notify*.tdb. These should be fixed by refusing a dbwrap_fetch_locked that does not follow a defined lock hierarchy.
* s3: Put an indirection layer into share_mode_lockVolker Lendecke2012-01-121-3/+5
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Remove a bunch of calls to procid_self()Volker Lendecke2011-12-121-2/+1
| | | | All callers to messaging_[re]init only used procid_self()
* s3: Use autogenerated open_files.idlVolker Lendecke2011-12-021-0/+1
|
* s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/Michael Adam2011-07-291-1/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104
* s3:dbwrap: move db_open() to a file dbwrap_open.c of its own.Michael Adam2011-07-291-0/+1
| | | | | | Also start new folder lib/dbwrap/ where dbwrap_open.c is stored and make the fallbacke implementation functoins non-static and create a dbwrap_private.h header file that contains their prototypes.
* s3:smbstatus: use lp_load_global() - smbstatus does not need to load shares!Michael Adam2011-07-281-1/+1
|
* tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell2011-06-201-1/+1
| | | | | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3-messages: only include messages.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-locking: move locking prototypes out of proto.h.Günther Deschner2011-03-301-0/+1
| | | | | | Will later become part of locking.h Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-sessionid: avoid global include of sessionid.hGünther Deschner2011-03-021-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 2 12:58:12 CET 2011 on sn-devel-104
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-021-3/+1
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* Change to using TDB_INCOMPATIBLE_HASH (the jenkins hash) on allJeremy Allison2010-09-271-1/+1
| | | | | | | | | | TDB_CLEAR_IF_FIRST tdb's. For tdb's like gencache where we open without CLEAR_IF_FIRST and then with CLEAR_IF_FIRST if corrupt this is still safe to use as if opening an existing tdb the new hash will be ignored - it's only used on creating a new tdb not opening an old one. Jeremy.
* s3-build: use dbwrap.h only where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-popt: Only include popt-common.h when needed.Andreas Schneider2010-08-051-0/+1
|
* s3: Abstract access to sessionid.tdb, similar to conn_tdb.cVolker Lendecke2010-03-011-31/+19
|
* s3: Add connections_forall_read()Volker Lendecke2010-03-011-3/+2
| | | | | | In a cluster, this makes a large difference: For r/w traverse, we have to do a fetch_locked on every record which for most users of connections_forall is just overkill.
* s3:smbstatus: Fix bug 6703, allow smbstatus as non-rootVolker Lendecke2009-09-181-11/+13
| | | | | We only require a ctdb connection when clustering is enabled. This limits the restriction for only-root smbstatus to the clustering case.
* s3:smbstatus: Fix some nonempty blank linesVolker Lendecke2009-09-181-19/+19
|
* s3: Change the share_mode_lock struct to store a base_name and stream_nameTim Prouty2009-07-081-4/+14
|
* Fix a bunch of compiler warnings about wrong format types.Jeremy Allison2009-05-111-2/+2
| | | | | Should make Solaris 10 builds look cleaner. Jeremy.
* S3: Log warning in smbstatus about lack of pid in anonymous mode.todd stecher2009-02-181-0/+4
|
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-2/+0
| | | | (This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
* Exit smbstatus cleanly if messaging_init failsVolker Lendecke2008-08-131-0/+6
| | | | (This used to be commit 5fd51833a31b326d83ac2f76d06560920547f657)
* Correctly initialize lp_load in smbstatus in the presence of registry on tdb2Volker Lendecke2008-04-231-4/+16
| | | | (This used to be commit c4f7bee9238db536a7d5215cebb0bf37f757dfad)
* In smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRSTVolker Lendecke2008-03-171-2/+2
| | | | | | | | This is needed to inform ctdb that it's not a persistent database, with the O_RDONLY the tdb backend ignores this. Merge from 491f902098d33f in 3-0-ctdb (This used to be commit 065938ccb7bb0052746267c433637f0e05b95d85)
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-3/+3
| | | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
* Tiny simplificationsVolker Lendecke2007-12-101-1/+1
| | | | | | | locking.c:open_read_only was unused don't export the silly boolean flag locking_init(bool read_only) (This used to be commit 2f3c865707010bc7c463a02782dbee3dc2479da1)
* Don't segfault if locking.tdb can't be openedVolker Lendecke2007-10-211-0/+13
| | | | | Thanks to Steve Langasek <vorlon@debian.org> (This used to be commit 67328bd27b1e881a4bcdd5160133afa9a267eaac)
* Fix the popt / bool issues. Some places we used BOOLJeremy Allison2007-10-191-14/+36
| | | | | | | where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy. (This used to be commit 793a9d24a163cb6cf5a3a0aa5ae30e9f8cf4744a)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-6/+6
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r25055: Add file_id_string_tosVolker Lendecke2007-10-101-1/+1
| | | | | This removes file_id_string_static and file_id_string_static2 (This used to be commit 638c848c9afe374feb30e34c494f89b2a6c64f7b)
* r24827: Give smbstatus an initial talloc stackframe.Michael Adam2007-10-101-14/+24
| | | | | | | | Rewrite main() so as to exit only at a single point where the stack frame is freed, too. Michael (This used to be commit dbe38995ec6d2251562a3b10e750bbd681008e16)
* r24125: use TALLOC_FREE()Stefan Metzmacher2007-10-101-2/+2
| | | | | metze (This used to be commit 4c21ebae95f7c07bdde55a9d686af044f2effba4)
* r24115: try to get the file name and share patch for printingStefan Metzmacher2007-10-101-4/+17
| | | | | | | | brlocks from the share_mode db, as the same fileid is used. metze (This used to be commit 8cccf470cbce87618753bc205a0c9cac1edf4d9c)
* r23954: merge from 3_0-ctdb-tridge:Stefan Metzmacher2007-10-101-0/+4
| | | | | | | don't display dead share mode entries in smbstatus metze (This used to be commit b52bb1e1556d2f4c2bfbd21e12782420bc26a029)