Age | Commit message (Collapse) | Author | Files | Lines |
|
* 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
(This used to be commit 5b8d53dfe1872621bf28c8351d87bfc53ef6e66b)
|
|
(This used to be commit 909172839a512b60db075fb1a7488345a2e48eb0)
|
|
The proper error condition is (ret == -1) instead of
(ret != number_of_byte_told_to_write).
Michael
(This used to be commit e3af95f0983e9f92c10a80ee4f15a0cd718a4728)
|
|
Michael
(This used to be commit efabd7fe03733d1fcb02d0d270c18ede7836f3a9)
|
|
- 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
(This used to be commit 1c36ccd86d85b02f27ec66d37bdf7f04ad760901)
|
|
Michael
(This used to be commit 63c4c40cf7055ab7cf413a23e306cf209a1dd0a1)
|
|
(This used to be commit 6bd2c48921dd8dbf2885a8135ba01a1324e020c8)
|
|
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 used to be commit e56be59947a29d0a5692f3f3bc6c089dd8b4b5d9)
|
|
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
(This used to be commit ca63a99b6188c0976603dc2852e478cc7a6b2f8b)
|
|
sid_array_from_info3()
function.
Guenther
(This used to be commit 1e1e480115e37b3f4c85f979ddd800b8de0b9c57)
|
|
(This used to be commit 864b3d260f3b099b1f24edf4ed0a7ed52b05f6cc)
|
|
(This used to be commit a40d3a566af88464fc6afd2c6e6e8b6e3a98aac2)
|
|
before calling ctdb_fatal()
metze
(This used to be commit 48ece3c21e3a5e9aa434c847eefaab59274a4e6f)
|
|
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.
(This used to be commit b4eff3f68089f082781afcf90d43faa317949566)
|
|
Michael
(This used to be commit 3a2a032a44502eebdb61faf9cfdb3e54f5072514)
|
|
Jeremy.
(This used to be commit 8adf81696aee99c5090e1b827ceb14929ec4aeda)
|
|
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.
(This used to be commit d4a7411c4886c601a917b0f0e53facc7e10dd18e)
|
|
Guenther
(This used to be commit 06418a63a0bf5df0e0e76172137d5dff026feaa6)
|
|
Guenther
(This used to be commit a84fd8300661fd895ed7a8a104b743628718dfc8)
|
|
at a lower debug level.
Michael
(This used to be commit b636f8cdad72a9a9bc1d302d8d681dca2da6105a)
|
|
amount as in source code formatting...)
Michael
(This used to be commit 9794b94ebf79686da2e1b3ae343953581e3459a1)
|
|
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
(This used to be commit 9415ea0fde2ff0c801d043ce77b778fceedb6592)
|
|
(This used to be commit ef40ef67649c8793921619c128e2923e20aa68da)
|
|
(This used to be commit 256301a21a1f393b5a2b89d4dce47b7d4f7bf9be)
|
|
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
|
|
not GNU Library General Public License
(This used to be commit 727a6cf2cba8da6b40610409b264e86e6908eb0c)
|
|
(This used to be commit 43cd589773148fe3d243892768ce187604dd0c33)
|
|
(This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
|
|
(This used to be commit e87bb12093dc78eb539fac0a171379a8cb5cd416)
|
|
(This used to be commit c14aba93c06348a1f84fc1dd9791ff1159d22c4b)
|
|
(This used to be commit f3df6cd87e1927f41e95af51d750a71278282e15)
|
|
(This used to be commit b6cbac3db3b478d5c7991cee78c6695fc8d22681)
|
|
(This used to be commit 1b78cace504f60c0f525765fbf59d9cc6506cd4d)
|
|
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.
(This used to be commit cb435543f84955be75368a3294bc6b627414d876)
|
|
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
|
|
Jeremy.
(This used to be commit c2f7ab1c175ecff0cf44d0bbc4763ba9f7d7803f)
|
|
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
|
|
to the caller (winbindd_validate_cache in this case).
Next, there will be a backup handling for the tdb files.
Michael
(This used to be commit 821bc84109625c9d85edee38fa26d16f9f0a0fe2)
|
|
(This used to be commit 91af086823265ed66bbd0bdc1cced070b7dd0629)
|
|
Michael
(This used to be commit b68856d9902f41079224ba11c7d0ab811b082201)
|
|
checkin will pull this up to srvstr_get_path. At that point we can get more
independent of the inbuf, the base_ptr in pull_string will only be used
to satisfy UCS2 alignment constraints.
(This used to be commit 836782b07bf133e9b2598c4a089f1c810e4c7754)
|
|
Jeremy.
(This used to be commit 77a46c7aee2ad4c402527cf78e5ae70a792d65d4)
|
|
(This used to be commit 82be4137b7bba6a9a433ec011e7f47587935ae61)
|
|
one byte of data despite characters being two-byte.
This modifies registry_pull_value, to change the data
to the correct two-byte version of the empty string,
(as delivered by winxp), when only one byte of data is
received.
Michael
(This used to be commit a4c2b20296d6853cd1578601f17330cde75c4038)
|
|
(This used to be commit 51a3933b3d367e3693daa6842f5a286328f4fd39)
|
|
(This used to be commit c195eccefea69c17169c350a13bbfe845fc6fc44)
|
|
all, so it's gone. With it 8k bss went away.
(This used to be commit 7e9a4c39a5ce620f8eac74d0ae4dd80b96c81aca)
|
|
(This used to be commit 3ec43e18a4ffc46700de484251ea0bb2a18cde78)
|
|
This one was particularly tasty, it was a static one. So 1k less
footprint per process.
(This used to be commit 83865e32889e2d29086ae9d9701713fc74b09175)
|
|
(This will be used in a next step to prevent storing these
values in reg_smbconf.c.)
Michael
(This used to be commit 00be68a8416405e12a27186506f9eb15bca055b3)
|