summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-03-22s3:vfs_gpfs: Report disk space and usage on GPFS share according to quotasChristof Schmitt2-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.
2012-03-22s3:vfs_gpfs: add GPFS api calls for quota and free space reportingChristof Schmitt2-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
2012-03-22s3:vfs_gpfs: Export disk_norm functionChristof Schmitt2-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.
2012-03-22s3:client correct a wordingChristian Ambach1-1/+1
2012-03-22s3: Fix smbd -iVolker Lendecke1-9/+11
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 18:40:02 CET 2012 on sn-devel-104
2012-03-22s3: Remove an unused structure fieldVolker Lendecke1-2/+0
2012-03-22s3: Add "notify" cmd to smbclientVolker Lendecke1-0/+57
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 13:51:50 CET 2012 on sn-devel-104
2012-03-22s3: Add sync cli_notifyVolker Lendecke2-0/+39
2012-03-22s3: Add FILE_NOTIFY_CHANGE_ALL #defineVolker Lendecke1-0/+8
2012-03-22s3-libsmb: Fix parsing a notify responseVolker Lendecke1-1/+1
2012-03-22s3: rename "len"->"next", according to wiresharkVolker Lendecke1-3/+3
2012-03-22lib/tdb2: fix -Wcast-qual warnings.Rusty Russell15-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
2012-03-22lib/tdb2: fix -Wshadow warnings.Rusty Russell6-27/+27
These warnings clutter things up, even though they're of marginal utility. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-22lib/tdb2: fix OpenBSD incoherent mmap (tdb2 version)Rusty Russell3-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>
2012-03-22lib/tdb2: fix OpenBSD incoherent mmap (tdb1 version)Rusty Russell3-24/+56
This is a direct port of the previous patch, to the TDB2 codebase. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-22lib/tdb: fix OpenBSD incoherent mmap.Rusty Russell4-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>
2012-03-22lib/replace: test for incoherent mmap.Rusty Russell3-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>
2012-03-22lib/ccan/failtest: compile fix for OpenBSDRusty Russell3-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>
2012-03-22lib/ccan: namespacize ccan/list to avoid conflict with OpenIndiana's sys/list.hRusty Russell20-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>
2012-03-22lib/tdb: fix up run-die-during-transaction test cases on Solaris.Rusty Russell4-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>
2012-03-22docs:man:vfs_gpfs: fix formatting of values for gpfs:syncioMichael Adam1-2/+2
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Mar 22 01:56:08 CET 2012 on sn-devel-104
2012-03-22docs:man:vfs_gpfs: Fix documented values for gpfs:hsmMichael Adam1-1/+1
2012-03-22s3:vfs_tsmsm: Fix a misspelling of a config parameter in the doc-commentMichael Adam1-1/+1
The module uses "tsmsm:dmapi attribute" instead of "tsmsm:attribute name".
2012-03-22s3-selftest: Remove some unnecessary commaBjörn Baumbach1-2/+2
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-22s3-selftest: Add samba3.blackbox.net.registry.check to test listBjörn Baumbach1-0/+2
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-22s3-selftest: introduce new net registry check checkBjörn Baumbach1-0/+146
Add a new check which checks for defects in the net registry check tool. Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-22Fix bug 8823 - source3/smbd/process.c:smb_dump seems to have a memory leak.Jeremy Allison1-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
2012-03-21s4-samba-tool: add password verification in change user passBjörn Baumbach1-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
2012-03-21s4-samba-tool: add password verification in add userBjörn Baumbach1-0/+4
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-21s4-provision: don't ask only 3 times for passwd in interactive modeBjörn Baumbach1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-21s4-provision: add password verification in interactive modeBjörn Baumbach1-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>
2012-03-21s3: Move the notify_ctx to the smbd_server_connectionVolker Lendecke5-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
2012-03-21s3: Remove "conn" param from notify_init()Volker Lendecke3-11/+5
2012-03-21s3: Remove "conn" param from sys_notify_context_createVolker Lendecke3-5/+3
2012-03-21s3: Remove "conn" from sys_notify_contextVolker Lendecke3-3/+1
2012-03-21s3: Pass "conn" to sys_notify_watch()Volker Lendecke3-2/+5
2012-03-21s3: Pass "conn" to notify_add()Volker Lendecke3-3/+6
2012-03-21s3: Pass "path" through vfs_notify_watchVolker Lendecke12-20/+38
2012-03-21waf: Add autoconf --target support.Andreas Schneider1-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
2012-03-21s4-upgradedns: Add DNS partitions in msDS-hasMasterNCs in NTDS settingsAmitay Isaacs1-0/+40
Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Wed Mar 21 03:16:22 CET 2012 on sn-devel-104
2012-03-21s4-rpc: dnsserver: Fix IPv6 reverse zone handlingAmitay Isaacs1-0/+7
Thanks to Marcel Ritter <marcel.ritter@rrze.fau.de> for the patch.
2012-03-21s4-upgradedns: Allow fixing of dns provision after domain joinAmitay Isaacs1-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.
2012-03-20librpc/wscript_build: Fix formatting.Jelmer Vernooij1-2/+2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Mar 20 15:26:14 CET 2012 on sn-devel-104
2012-03-20Move NS_GUID_string and NS_GUID_from_string to dsdb-common.Jelmer Vernooij6-55/+64
2012-03-20libndr: Define trivial is_valid_policy_hnd as macro.Jelmer Vernooij2-6/+1
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20libndr: Rename policy_handle_empty to ndr_policy_handle_empty.Jelmer Vernooij8-22/+23
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20libndr: Rename policy_handle_equal to ndr_policy_handle_equal.Jelmer Vernooij3-5/+5
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ↵Jelmer Vernooij12-37/+37
ndr_ prefix. This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20librpc/wscript_build: Santizize formatting.Jelmer Vernooij1-384/+387
2012-03-19s3-winbindd Only use SamLogonEx when we can get unencrypted session keysAndrew Bartlett1-2/+2
This ensures that we have some check on the session keys being returned as the RC4 cipher is not checksumed. The check comes from the fact that the credentials chain is tied to the session key, and so if the credentials check passes then the netlogon session key will be correct, and so the user session key will be correctly decrypted. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Mar 19 21:31:46 CET 2012 on sn-devel-104