summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-12-01version.sh: Add missing v letter in front of METASTORE_PRETAG_VER value.Przemyslaw Pawelczyk
2015-12-01Makefile: Change default installation prefix to /usr/local.Przemyslaw Pawelczyk
Fixes #34.
2015-12-01Makefile: Change name of variables related to installation directories.Przemyslaw Pawelczyk
2015-12-01Add action to show metastore version: -v / --version.Przemyslaw Pawelczyk
Fixes #36.
2015-12-01Makefile: Move PROJ_DIR to the beginning.Przemyslaw Pawelczyk
2015-10-26Merge pull request #32 from Alphix/masterPrzemysław Pawełczyk
Officially ceding maintainership of metastore to Przemyslaw Pawelczyk.
2015-10-26Officially ceding maintainership of metastore to Przemyslaw Pawelczyk.David Härdeman
Signed-off-by: David Härdeman <david@hardeman.nu>
2015-09-13Move man pages for section 1 to man1/ directory.Przemyslaw Pawelczyk
As a bonus you can install out-of-tree now via make -f. Fixes #22.
2015-09-13Move 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.
2015-09-13AUTHORS: Add Edvinas Valatka.Przemyslaw Pawelczyk
2015-09-13Makefile: Provide libs after object files when linking.Edvinas Valatka
See: https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Importance_of_linking_order Fixes #29. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-09-13Create .mailmap file.Przemyslaw Pawelczyk
Personally I avoid using non-ASCII letters in commit author information and most source files, thus you can often see my name with L instead of L with stroke. The usual exceptions are AUTHORS and .mailmap file, so I can remain using ASCIIfied version, yet `git shortlog` shows my name properly.
2015-09-08metastore.1: Fix section of the manual page.Przemyslaw Pawelczyk
It was accidentally changed when I was amending Dan's patch, which ended in the repo as commit: b6f60de Add support for deleting directories with -a -E.
2015-09-08Add action to dump metadata in human-readable form: -d / --dump.Przemyslaw Pawelczyk
metastore depends now on libbsd, because of strmode() function. This commit fixes issue #28.
2015-09-08NEWS: Add info about recent bugfix in 489d586.Przemyslaw Pawelczyk
2015-09-07metastore.c: Show default metastore file in help message.Przemyslaw Pawelczyk
2015-09-07README: Properly fix typo.Przemyslaw Pawelczyk
2015-09-06Fix reading extended attributes values from metadata file.Przemyslaw Pawelczyk
During implementation and tests of new dump action, I've noticed that while non-textual values in extended attributes were properly stored in .metadata file, retrieving them from it was simply broken, i.e. anything beyond first null byte was zeroed. Small quantum of solace is the fact that apparently metastore users rarely use extended attributes or at least rarely with non-textual values, because otherwise they would surely report such crucial bug. Let's perform simple test to show the problem: $ mkdir -p ~/testxattr/ && cd ~/testxattr/ && touch test $ setfattr -n user.txt -v "tekst" test $ setfattr -n user.bin -v 0x020100ff00 test $ getfattr -d -e hex test # file: test user.bin=0x020100ff00 user.txt=0x74656b7374 $ metastore -s test $ OFFSET=$(($(grep -abo user.bin .metadata | sed 's/:.*//')+8+1+4)) $ xxd -p -l5 -s $OFFSET .metadata 020100ff00 So far everything seems fine, i.e. user.bin xattr is properly stored. $ metastore -c test ./test: xattr Apparently on-disk test xattrs differ from those in metadata file, even though they should not! Let's apply those from metadata file and show how they look on-disk. $ metastore -a test ./test: changing metadata ./test: removing xattr user.bin ./test: adding xattr user.bin $ getfattr -d -e hex test # file: test user.bin=0x0201000000 user.txt=0x74656b7374 Oh no! Extended attribute with non-textual data has been corrupted now. But no more, because this commit fixes it! As long as you haven't stored corrupted xattrs in metadata file, you can still recover on-disk ones by applying them from metadata file using fixed version of metastore.
2015-09-06Simplify code performing actions. Remove duplicated code.Przemyslaw Pawelczyk
2015-09-06metastore.c: Simplify and compress option handling code.Przemyslaw Pawelczyk
2015-09-03Remove trailing whitespaces.Przemyslaw Pawelczyk
2015-09-03README: Be explicit about metastore being GPLv2 only.Przemyslaw Pawelczyk
2015-09-03Make all license notices in files explicit about being GPLv2 only.Przemyslaw Pawelczyk
Turn version 2 of the License into only version 2 of the License is applicable and restore the semicolon preceding it.
2015-09-03Make all license notices in source files formatted the same way.Przemyslaw Pawelczyk
Wording has been changed only in Makefile, where: Free Software has been fixed into proper name: Free Software Foundation, Inc. with trailing comma separating it from address.
2015-09-03Rename LICENSE to LICENSE.GPLv2.Przemyslaw Pawelczyk
2015-09-03README: Fix typo.Przemyslaw Pawelczyk
2015-09-02metastore.c: Remove unused parameters from functions.Przemyslaw Pawelczyk
2015-09-02metaentry.c: Use realpath() instead of GNU-ish canonicalize_file_name().Przemyslaw Pawelczyk
canonicalize_file_name() is not portable, but it can be easily replaced. Now we're a bit friendlier to non-GNU libcs, like musl.
2015-09-02Merge branch 'impro/switch-xattr-header'Przemyslaw Pawelczyk
Conflicts: NEWS
2015-09-02NEWS: Add information about new example script.Przemyslaw Pawelczyk
2015-09-02examples: Add post-checkout example script.Dan Fandrich
This is analagous script to the pre-commit one, but it applies metadata automatically after a git checkout. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-09-02NEWS: Add information about new option and unbashed scripts.Przemyslaw Pawelczyk
2015-09-02metastore.c: Improve removing empty dirs not present in metadata.Przemyslaw Pawelczyk
Store extradirs list ordered by pathlen descendingly, so one traversal should be enough to remove empty dirs.
2015-09-02metastore.c: Improve removing empty dirs not present in metadata.Przemyslaw Pawelczyk
Update extradirs list after successful rmdir(), so already removed directory won't be provided to rmdir() again.
2015-09-02metastore.c: Add long option for -E in help, reorder and fix alignment.Przemyslaw Pawelczyk
2015-09-02Add support for deleting directories with -a -E.Dan Fandrich
This is analagous to the -e option to create empty directories. It simply removes them when they are not present in the metadata. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-09-01examples: Use /bin/sh as the shell for scripts (instead of bash).Dan Fandrich
Scripts seem to be POSIX shell conformant, so no need to be specific. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-02-14Improve example hooks and remove bashisms in them.Przemyslaw Pawelczyk
2015-02-08NEWS: Add information about xattr.h change.Przemyslaw Pawelczyk
2015-02-08AUTHORS: Add Ken Dawson.Przemyslaw Pawelczyk
2015-02-08Use sys/xattr.h instead of attr/xattr.h.Ken Dawson
xattr.h from libattr is not necessary, because glibc ships its own xattr.h for many years already (since v2.3, so it's like 13 years). libattr's header included errno.h, thus now it needs to be included explicitly. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-02-07AUTHORS: Add Dan Fandrich.Przemyslaw Pawelczyk
2015-02-07metastore.1: Use a real minus character for dashes in options.Dan Fandrich
Literal `-` prints as a hyphen, which doesn't conform to common man page guidelines for writing options that have a leading dash. Proper form is: \- Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-02-07Avoid comparison between signed and unsigned integers.Dan Fandrich
This removes warnings shown during build with -Wextra flag. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-02-07metaentry.c: Fix compilation when DEBUG is defined.Dan Fandrich
Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2015-02-07Create NEWS file.Przemyslaw Pawelczyk
`git log` provides detailed stuff. NEWS file should only contain user-visible or really important changes.
2015-02-07Remove debian/ directory.Przemyslaw Pawelczyk
I think that adding this directory 3 years ago to the repository was a mistake. If there will be a demand for it, some Makefile rule bootstrapping debian/ directory could be devised.
2015-02-07README: Update it a bit and mention this metastore status.Przemyslaw Pawelczyk
New description shamelessly copied from David's software page: http://david.hardeman.nu/software.php (https://archive.today/vW7Ar)
2015-02-07Create AUTHORS file.Przemyslaw Pawelczyk
2013-05-03Add include guards in header files.Przemyslaw Pawelczyk