btrfs: don't leak opened directory handle

Closing a directory handle file descriptor via close() is undefined,
according to:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/dirfd.html

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Tue Nov  4 20:51:02 CET 2014 on sn-devel-104
smbcontrol: Use server_id_str_buf

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed Nov  5 13:03:39 CET 2014 on sn-devel-104
s3:smbd: fix file corruption using "write cache size != 0"

A client can:
- open a handle (h1)
- write some data to h1.
- open a 2nd handle h2 (downgrades both handles to level II)
- try to read the data on h2 (this gets old data)

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10921

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Nov  6 13:09:38 CET 2014 on sn-devel-104
testtools: Import new upstream snapshot.

Change-Id: If63092b5e702121fdc27793c5e796931b4b94e8b
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
subunit: Update to new upstream snapshot.

Change-Id: I5da01c29fee4998df04ab8333230139377ec91c0
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
testtools: Update to new upstream snapshot.

Change-Id: Ic949ec35b60eef84918327dc8616c785674824ff
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Add bundled copy of 'extras' python module used by newer versions of
testtools/subunit.

Change-Id: I5ad9222ccb4228a4b16d54a578276d4b9d4e6c4d
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Add python paths for extras.

Change-Id: I3b13239b4c73bc84fdcc3ad1f229d5ebd69e89eb
filter-subunit: Consistently use spaces rather than tabs.

Change-Id: I760399cb4bf0aa9753f5f1e842919b386e1caca9
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
selftesthelpers: Cope with tap2subunit outputting subunit2.

Change-Id: Ia7e73f1a5fa47327bf1034d5ea0d94957bac2dec
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Use bundled extras when the system doesn't provide it.

Change-Id: I188bb89b14d98e6ad8ad03e1ca08a012430b6f62
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
selftest: Drop support for TESTSUITE-IDLIST, and remove its last user.

Change-Id: Ic616676bb770fa4769195d73c4309915646caae0
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Remove unused imports.

Change-Id: I8915f62206edb53ffc2d89434e46d9e71db8bb9a
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Include mimeparse, which is used by subunit/testtools.

Change-Id: I984c82acc0bc82a165e8ea17d8948c465c786905
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Allow testsuites to specify what subunit version they support.

Change-Id: Ia4a4c9fa6df67d0ff662ce9f0044db70fa96c128
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
format-subunit: Remove remaining tabs.

Change-Id: I70eabda60e3d4eede874eb5e95bf455eddfb0992
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
pidl: White space cleanups in Conformance.pm and NDR.pm

Change-Id: Ibf106d023c50a7f3caf8f416e9927ac4a040f2c0
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10842
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Support using system ldbmodify.

Fixes this test when bin/ldbmodify isn't built because we're using the
system ldbmodify.

Change-Id: I2ff0d9808245353006c6be4989976a3edad8f98e
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Use subunitv2 for all old-style Python tests.

Change-Id: I28489b202d985ab472642168c201119616ca4461
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
Add support for finding extras/mimeparse in old style Python tests.

Eventually these tests should be converted to "real" Python unit tests,
making these hacks unnecessary.

Change-Id: Id760285a38250830dd7d4f948db602d00cabcb6f
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>