Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-05-18 | Add ability to write Format 1 metadata files | Adam Spragg | |
2022-05-18 | Add -r/--format option to pick the format to save as | Adam Spragg | |
Only version 0 is supported here. | |||
2022-05-18 | Separate format-specific read/write logic into own functions | Adam Spragg | |
2022-05-18 | Reuse already calculated end-of-buffer pointer | Adam Spragg | |
2022-05-18 | Make buffers that are read from `const`-correct | Adam Spragg | |
2022-05-18 | Label file Format 0 explicitly as Format 0 | Adam Spragg | |
2021-04-08 | Fix "changing owner" message to show owner instead of group.HEADmaster | Przemyslaw Pawelczyk | |
2021-04-07 | Fix path normalization for the case of CWD being the root directory (/). | Jürgen Bubeck | |
Previously metastore would fail if running from / and paths were given: $ pwd / $ metastore -d bin lstat failed for .bin: No such file or directory Now it works properly: $ metastore -d bin | head -1 lrwxrwxrwx root root 2018-08-17 16:31:23.120322532 +0200 ./bin/hostname Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com> | |||
2018-09-08 | Fix conversion specifiers in "Failed to {malloc,strdup}" messages. | Przemyslaw Pawelczyk | |
2018-09-08 | Add missing argument to "Failed to get metadata for %s\n" message. | Przemyslaw Pawelczyk | |
2018-02-19 | Support building with empty -DNO_XATTR= (equivalent to -DNO_XATTR=0). | Przemyslaw Pawelczyk | |
2018-02-19 | Support building with no extended attributes support. | Przemyslaw Pawelczyk | |
Support building with no extended attributes support when NO_XATTR macro is predefined to non-0 value (e.g. put -DNO_XATTR in CFLAGS). | |||
2018-02-18 | utils.h: Introduce new verbosity level: MSG_WARNING. | Przemyslaw Pawelczyk | |
2018-02-18 | metastore.c: Version information cannot be suppressed. | Przemyslaw Pawelczyk | |
2018-02-18 | metastore.c: Print usage to stdout if help is requested. | Przemyslaw Pawelczyk | |
Also change level of usage message shown after critical one to error, so it can be suppressed without hiding critical one if desired (-qqq). | |||
2018-02-03 | Update copyright notices. | Przemyslaw Pawelczyk | |
2018-02-03 | Add SPDX License Identifier to all source files. | Przemyslaw Pawelczyk | |
The Software Package Data Exchange (SPDX) is a good initiative, it has matured over time and deserves accelerated adoption in open-source. https://spdx.org/learn https://spdx.org/using-spdx https://spdx.org/license-list | |||
2018-02-03 | Slightly reformat and modernize GPLv2 only license notices. | Przemyslaw Pawelczyk | |
Reformat second paragraph for better look. It had awkward line wrap. Modernize third paragraph. No need to send letters to FSF in Boston. | |||
2018-01-23 | Fix documentation: integers are stored in little-endian byte order. | Przemyslaw Pawelczyk | |
David misdocumented read/write int functions back in commit 5fed2f9169fdd0585cc83ff0fa8210d97da77cb2 (2007-05-19) and later it probably got copy-pasted to the documentation of file format. | |||
2018-01-23 | Fix sparse warning: Variable length array is used. | Przemyslaw Pawelczyk | |
Avoid using VLAs when it is not really needed, especially in cases like this one here, when possible array size is very limited (1-8 bytes). | |||
2018-01-23 | Fix sparse warning: symbol was not declared. Should it be static? | Przemyslaw Pawelczyk | |
Declare file-scope objects or functions that do not need external linkage as static. | |||
2018-01-23 | Fix sparse warnings: non-ANSI function declaration. | Przemyslaw Pawelczyk | |
Explicitly specify void when a function accepts no arguments. | |||
2018-01-03 | metaentry.c: Define PATH_MAX if it's undefined. | Przemyslaw Pawelczyk | |
PATH_MAX is not guaranteed by POSIX to be present and some systems, like GNU Hurd, indeed does not define it. http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html https://www.gnu.org/software/hurd/hurd/porting/guidelines.html For now let's define PATH_MAX as 4096 (if it is not already defined), because that's how Linux defines it and it seems quite reasonable. In future dependence on PATH_MAX can be removed. | |||
2017-11-24 | metaentry.c: Fix underallocation for xattr_lvalues. | Przemyslaw Pawelczyk | |
Wrong type has been used for calculating size of requested memory. Underallocation happened in mentries_fromfile() code path if sizeof(ssize_t) > sizeof(int), which is true on 64-bit platforms. Reading metadata file with extended attributes entries led to corruption of metadata represented in memory on such platforms, so applying could led to corruption of metadata on disk too. Reported-by: Uros Juvan <asmpro@gmail.com> | |||
2016-02-22 | metastore.c: Be more strict about arguments in compare_print(). | Przemyslaw Pawelczyk | |
That way we can avoid possible (yet not feasible in current code) NULL pointer dereference. | |||
2016-02-06 | Define also _DEFAULT_SOURCE where _BSD_SOURCE is already defined. | Przemyslaw Pawelczyk | |
It's required to avoid getting warnings w/ glibc >= 2.20. | |||
2016-02-05 | Use C99 predefined identifier __func__ instead of non-std __FUNCTION__. | Przemyslaw Pawelczyk | |
2016-02-01 | Improve code formatting and convert `unsigned int` to `unsigned`. | Przemyslaw Pawelczyk | |
2016-02-01 | metaentry.c: Do not compare signed and unsigned integer. | Przemyslaw Pawelczyk | |
2016-01-12 | metaentry.c: Fix meta entry handling in case of xattr errors. | Przemyslaw Pawelczyk | |
getxattr() call can fail in mentry_create(), so NULL-initialize mentry->xattr_values[i] and update mentry->xattrs upon error, so there is no attempt in mentry_free() to free unitialized xattr_names[i] and xattr_values[i] pointers. Fixes #38. | |||
2016-01-09 | metaentry.c: Include <bsd/string.h> only on non-BSD platforms. | Przemyslaw Pawelczyk | |
2015-12-01 | Add action to show metastore version: -v / --version. | Przemyslaw Pawelczyk | |
Fixes #36. | |||
2015-09-13 | Move source files to src/ directory. | Przemyslaw Pawelczyk | |
As a bonus you can build out-of-tree now via make -f. It's part of the work related to issue #22. |