summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s3:vfs_gpfs: Implement fallocate callback for GPFSChristof Schmitt2012-03-224-0/+79
| | | | | | | GPFS provides the gpfs_prealloc call. Implement the fallocate callback with mode VFS_FALLOCATE_EXTEND_SIZE using this call. There is no support for VFS_FALLOCATE_KEEP_SIZE, so report this mode as not available.
* s3:vfs_gpfs: Report disk space and usage on GPFS share according to quotasChristof Schmitt2012-03-222-0/+176
| | | | | | | | | | | | | | | | | | When a client requests the information about free space and space used, adjust the reported values according to quotas in the GPFS file system: - Retrieve quotas for the current user, current group and fileset for the top level of the share. - If the soft block quota grace time has expired, report disk as full. - If a hard block quota has been exceeded, report disk as full. - If none of the hard block quotas been exceeded, report share size and free space according to the lowest limits found in the quotas. - If no applicable hard block quota has been set, report the information from the statfs call. This feature is disabled by default and has to be enabled by setting the option gpfs:dfreequota.
* s3:vfs_gpfs: add GPFS api calls for quota and free space reportingChristof Schmitt2012-03-222-0/+80
| | | | | | Add the GPFS api calls for reporting the quotas and free space: - get_gpfs_quota for querying a quota - get_gpfs_fset_id for mapping a path to a fileset id
* s3:vfs_gpfs: Export disk_norm functionChristof Schmitt2012-03-222-1/+2
| | | | | | vfs modules implementing the disk_free callback need access to the function disk_norm for normalizing the data if the parameter small query is true.
* s3:client correct a wordingChristian Ambach2012-03-221-1/+1
|
* s3: Fix smbd -iVolker Lendecke2012-03-221-9/+11
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 18:40:02 CET 2012 on sn-devel-104
* s3: Remove an unused structure fieldVolker Lendecke2012-03-221-2/+0
|
* s3: Add "notify" cmd to smbclientVolker Lendecke2012-03-221-0/+57
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 13:51:50 CET 2012 on sn-devel-104
* s3: Add sync cli_notifyVolker Lendecke2012-03-222-0/+39
|
* s3: Add FILE_NOTIFY_CHANGE_ALL #defineVolker Lendecke2012-03-221-0/+8
|
* s3-libsmb: Fix parsing a notify responseVolker Lendecke2012-03-221-1/+1
|
* s3: rename "len"->"next", according to wiresharkVolker Lendecke2012-03-221-3/+3
|
* lib/tdb2: fix -Wcast-qual warnings.Rusty Russell2012-03-2215-59/+33
| | | | | | | | | | | | | We use tdb_mkdata() to get rid of many of them from the tests, and explicit cast_const() in a few places. tlist_for_each() still causes a warning, but that needs to be fixed in CCAN. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Mar 22 03:29:32 CET 2012 on sn-devel-104
* lib/tdb2: fix -Wshadow warnings.Rusty Russell2012-03-226-27/+27
| | | | | | | | These warnings clutter things up, even though they're of marginal utility. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: fix OpenBSD incoherent mmap (tdb2 version)Rusty Russell2012-03-223-8/+31
| | | | | | | | This handles incoherent mmaps for TDB2 native databases, by forcing mmap on for such systems, just like we did for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb2: fix OpenBSD incoherent mmap (tdb1 version)Rusty Russell2012-03-223-24/+56
| | | | | | | This is a direct port of the previous patch, to the TDB2 codebase. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb: fix OpenBSD incoherent mmap.Rusty Russell2012-03-224-24/+58
| | | | | | | | | | | | | | | | | | | | | | | This comment appears in two places in the code (commit 4c6a8273c6dd3e2aeda5a63c4a62aa55bc133099 from 2001): /* * We must ensure the file is unmapped before doing this * to ensure consistency with systems like OpenBSD where * writes and mmaps are not consistent. */ But this doesn't help, because if one process is using mmap and another using pwrite, we get incoherent results. As demonstrated by OpenBSD's failure on the tdb unit tests. Rather than disable mmap on OpenBSD, we test for this issue and force mmap to be enabled. This means that we will fail on very large TDBs on 32-bit systems, but it's better than the horrendous performance penalty on every OpenBSD system. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/replace: test for incoherent mmap.Rusty Russell2012-03-223-0/+97
| | | | | | | We test for other mmap features here, and both tdb1 and tdb2 want this check. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/ccan/failtest: compile fix for OpenBSDRusty Russell2012-03-223-0/+17
| | | | | | | | | | | OpenBSD doesn't idempotent-wrap sys/mman.h, so when we #define mmap to an alternative, it fails to compile when sys/mman.h is included again. Workaround is not to #define mmap to add arguments on Open BSD. (Imported from CCAN commit e18e80fe175422d26efe689addc0f67bdba0e097) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/ccan: namespacize ccan/list to avoid conflict with OpenIndiana's sys/list.hRusty Russell2012-03-2220-357/+392
| | | | | | | | | CCAN includes a little utility called "namespacize" which prepends ccan_ to all public methods of a module, and fixes up any dependencies it finds. It's a little primitive, but it works here. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/tdb: fix up run-die-during-transaction test cases on Solaris.Rusty Russell2012-03-224-5/+4
| | | | | | | | | | By using a different include order, we end up with a different version of FILE_OFFSET_BITS (and probably other things) in parts of the test. The different variants get linked together, and the result is weird: the stat returns 0 size. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* docs:man:vfs_gpfs: fix formatting of values for gpfs:syncioMichael Adam2012-03-221-2/+2
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Mar 22 01:56:08 CET 2012 on sn-devel-104
* docs:man:vfs_gpfs: Fix documented values for gpfs:hsmMichael Adam2012-03-221-1/+1
|
* s3:vfs_tsmsm: Fix a misspelling of a config parameter in the doc-commentMichael Adam2012-03-221-1/+1
| | | | The module uses "tsmsm:dmapi attribute" instead of "tsmsm:attribute name".
* s3-selftest: Remove some unnecessary commaBjörn Baumbach2012-03-221-2/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-selftest: Add samba3.blackbox.net.registry.check to test listBjörn Baumbach2012-03-221-0/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-selftest: introduce new net registry check checkBjörn Baumbach2012-03-221-0/+146
| | | | | | | Add a new check which checks for defects in the net registry check tool. Signed-off-by: Michael Adam <obnox@samba.org>
* Fix bug 8823 - source3/smbd/process.c:smb_dump seems to have a memory leak.Jeremy Allison2012-03-221-3/+8
| | | | | | | Based on code from Richard Sharpe. Move to talloc from malloc. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 22 00:20:41 CET 2012 on sn-devel-104
* s4-samba-tool: add password verification in change user passBjörn Baumbach2012-03-211-1/+5
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Mar 21 17:43:35 CET 2012 on sn-devel-104
* s4-samba-tool: add password verification in add userBjörn Baumbach2012-03-211-0/+4
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s4-provision: don't ask only 3 times for passwd in interactive modeBjörn Baumbach2012-03-211-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s4-provision: add password verification in interactive modeBjörn Baumbach2012-03-211-3/+9
| | | | | | | Since we do not print the password out (anymore), it is necessary to verify the entered password. Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Move the notify_ctx to the smbd_server_connectionVolker Lendecke2012-03-215-10/+14
| | | | | | | | | We only need one notify_ctx per smbd. The notify_array can become quite large. It's based on absolute paths, so there's no point in having a copy of the complete array in memory multiple times. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Mar 21 14:26:07 CET 2012 on sn-devel-104
* s3: Remove "conn" param from notify_init()Volker Lendecke2012-03-213-11/+5
|
* s3: Remove "conn" param from sys_notify_context_createVolker Lendecke2012-03-213-5/+3
|
* s3: Remove "conn" from sys_notify_contextVolker Lendecke2012-03-213-3/+1
|
* s3: Pass "conn" to sys_notify_watch()Volker Lendecke2012-03-213-2/+5
|
* s3: Pass "conn" to notify_add()Volker Lendecke2012-03-213-3/+6
|
* s3: Pass "path" through vfs_notify_watchVolker Lendecke2012-03-2112-20/+38
|
* waf: Add autoconf --target support.Andreas Schneider2012-03-211-0/+3
| | | | | | | | | This is needed on some platforms so that you can set it and it is not automagically transformed into --targets. The --target option is normally set by the RPM %configure macro. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Mar 21 11:54:02 CET 2012 on sn-devel-104
* s4-upgradedns: Add DNS partitions in msDS-hasMasterNCs in NTDS settingsAmitay Isaacs2012-03-211-0/+40
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 21 03:16:22 CET 2012 on sn-devel-104
* s4-rpc: dnsserver: Fix IPv6 reverse zone handlingAmitay Isaacs2012-03-211-0/+7
| | | | Thanks to Marcel Ritter <marcel.ritter@rrze.fau.de> for the patch.
* s4-upgradedns: Allow fixing of dns provision after domain joinAmitay Isaacs2012-03-211-39/+56
| | | | | | | This change allows samba_upgradedns script to be run even on existing dns provision (DLZ_BIND9 or SAMBA_INTERNAL) without any side effects. This allows to "fix" dns provision after samba-tool domain join for running BIND with DLZ plugin.
* librpc/wscript_build: Fix formatting.Jelmer Vernooij2012-03-201-2/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Mar 20 15:26:14 CET 2012 on sn-devel-104
* Move NS_GUID_string and NS_GUID_from_string to dsdb-common.Jelmer Vernooij2012-03-206-55/+64
|
* libndr: Define trivial is_valid_policy_hnd as macro.Jelmer Vernooij2012-03-202-6/+1
| | | This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* libndr: Rename policy_handle_empty to ndr_policy_handle_empty.Jelmer Vernooij2012-03-208-22/+23
| | | This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* libndr: Rename policy_handle_equal to ndr_policy_handle_equal.Jelmer Vernooij2012-03-203-5/+5
| | | This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ↵Jelmer Vernooij2012-03-2012-37/+37
| | | | | ndr_ prefix. This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* librpc/wscript_build: Santizize formatting.Jelmer Vernooij2012-03-201-384/+387
|