| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
some little fixes to get the correct error message
when using "clustering = yes" and ctdbd isn't running
metze
|
| |
|
| |
|
|
|
|
| |
recursively
|
|
|
|
| |
and receives messages to other nodes... :-)
|
| |
|
|
|
|
|
|
| |
and not TDB_DATA
metze
|
|
|
|
|
|
| |
registry_pull_value().
Guenther
|
|
|
|
|
|
| |
Timur I. Bakeyev for bugging me :-)
Volker
|
|
|
|
|
|
|
|
|
| |
If restoring a backup fails due to lack of space, remove the
corrupt tdb previously moved away to "name.corrupt", and retry.
If restoring still fails, move the backup in place instead of
copying it.
Michael
|
|
|
|
| |
Michael
|
|
|
|
|
|
|
|
|
| |
error condition to write. This is in tdb_new_database.
Fix one call to tdb_new_database in tdb_open_ex to not
overwrite the newly propagated errno (typically ENOSPC).
Michael
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* prevent infinite loops due to 0 bytes written:
try once more. if we still get 0 as return,
set errno to ENOSPC and return -1 (error)
* replace int by correct types (ssize_t and size_t).
* print a warning log message in case "written < requested to write"
usually this means, that the next call to pwrite will fail
with return value -1 and set errno accordingly.
Note that the former error condition "written != requested to write"
is not a correct error condition of write/pwrite. If this is due
to an error, a subsequent call to (p)write will reveal the cause
(typically "no space left on device" - ENOSPC).
Michael
|
| |
|
|
|
|
|
|
|
| |
The proper error condition is (ret == -1) instead of
(ret != number_of_byte_told_to_write).
Michael
|
|
|
|
| |
Michael
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- call tdb_validate on the given tdb.
- if validation is successful, create a backup
return 0 (success) even if the backup fails.
- if validation fails:
- move tdb to name.corrupt (don't exit if this fails)
- look for a valid backup
- if a valid backup is found, restore it, else return -1 (failure)
if restoring succeeds, return 0 (success), else -1 (failure)
Summing up:
If 0 is returned, there is a valid tdb at the given location:
either the original one ore one restrored from a backup.
If -1 is returned, there is no valid tdb at the given location:
Either there is no file at all, or the original file is still
in place (if moving it away failed).
Michael
|
|
|
|
| |
Michael
|
| |
|
|
|
|
|
|
|
|
| |
functions did not do so but returned an error. (This is the case when
error occurred deeper than at the level of the content checking done by
the per entry validate_fn.)
Michael
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a wrapper around tdb_validate, that does backup handling:
* if the given tdb is valid, a backup is created (name.bak)
* if the tdb is invalid, if a valid bakup is found (validated
with the same validation function) under the name "name.bak"
the orignal tdb is moved to name.corrupt and the backup
is restored.
For the backup handling, a variant of the backup_tdb function
from lib/tdb/tools/tdbbackup.c is included in lib/util_tdb.c.
The copy function for the traverse action eliminates the need
to maintain a global success state by using a struct wrapping
the target tdb and a success flag as the private data.
Michael
|
|
|
|
|
|
|
|
| |
sid_array_from_info3()
function.
Guenther
|
| |
|
| |
|
|
|
|
|
|
|
| |
handle NT_STATUS_RETRY and always print out the NTSTATUS string
before calling ctdb_fatal()
metze
|
|
|
|
|
|
|
|
|
|
|
| |
calls and converted reply_tcon and reply_tconX to use
them - to show the boilerplate usage (valgrind tested).
In conjunction with Volker's srvstr_get_path_talloc()
work this should allow us to start eliminating all
pstrings/fstrings out of the main path processing
code.
I'll watch the build farm tonight...
Jeremy.
|
|
|
|
| |
Michael
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
|
| |
returns an errno of ELOOP for a symlink of msdfs:server\path\to\link.
Cope with this by mapping to a known error NT_STATUS_OBJECT_PATH_NOT_FOUND
that we know dfs_path_lookup should ignore.
Jeremy.
|
|
|
|
| |
Guenther
|
|
|
|
| |
Guenther
|
|
|
|
|
|
| |
at a lower debug level.
Michael
|
|
|
|
|
|
| |
amount as in source code formatting...)
Michael
|
|
|
|
|
|
|
|
| |
from the validating child process down to the parent though the
pipe. All the parent evaluates is the overall success, so the exit
status should do.
Michael
|
| |
|
| |
|
| |
|
|
|
|
| |
not GNU Library General Public License
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Samba3 tree.
This is neater, plus it avoids the need to get legal approval from SGI
to use their GPLv2-only code under GPLv3.
If/when SGI legal sort things out, we could consider adding back this
header for very old systems where linux/dqblk_xfs.h is not available.
|
| |
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
|
| |
to the caller (winbindd_validate_cache in this case).
Next, there will be a backup handling for the tdb files.
Michael
|
| |
|