summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2013-05-03Simplify mentries_recurse*() functions.Przemyslaw Pawelczyk
Remove duplicated code introduced by 47fa5ae and use settings instead.
2013-05-03Introduce settings structure.Przemyslaw Pawelczyk
No more passing particular options (like git or mtime) to functions. The structure is meant to be immutable after filling during startup.
2012-06-11Bump version, i.e. update debian/changelog.Przemyslaw Pawelczyk
2012-06-11Remove no longer needed debian/{source/format,watch} files.Przemyslaw Pawelczyk
2012-06-11Merge debian/ changes from Debian.Romain Francoise
* Switch to debhelper compat level 9. * Enable all hardening options. * Don't overwrite environment CFLAGS, use CPPFLAGS. * Bump Standards-Version to 3.9.3, no changes needed.
2012-06-11Don't overwrite environment CFLAGS, use CPPFLAGS.Romain Francoise
2012-06-07Bump version, i.e. update debian/changelog.Przemyslaw Pawelczyk
2012-06-07Fix false error when writing zero-length records.Zak Wilcox
Quoting Todd A. Jacobs, https://bugs.launchpad.net/bugs/937306: DATA LOSS WARNING: Using metastore in its current condition can lead to loss of metadata. See below for details. First of all, metastore provides confusing and useless feedback to the user when storing extended attributes without defined values. To consistently re-create this problem: $ touch foo $ setfattr -n user.bar foo $ metastore -s foo Failed to write to file: Success $ echo $? 1 The error message and exit status imply the operation has failed, but it has not--at least, not completely. You can see that metastore *appears* to have succeeded as follows: $ rm foo $ touch foo $ metastore -a foo ./foo: changing metadata ./foo: adding xattr user.bar $ echo $? 0 $ getfattr -d foo # file: foo user.bar So, the .metadata file seems to contains all the correct information, but it provides this contradictory and cryptic error message to the user on save. However, the .metadata file *is* actually broken, but you only see it when saving multiple extended attributes where at least one of them has no defined value. $ rm foo; rm .metadata $ touch foo $ setfattr -n user.bar foo $ setfattr -n user.baz -v quux foo $ getfattr -d foo # file: foo user.bar user.baz="quux" $ metastore -s foo Failed to write to file: Success $ echo $? 1 $ rm foo $ touch foo $ metastore -a Attempt to read beyond end of file, corrupt file? $ echo $? 1 So, there are really two things that need fixing: 1. The incredibly cryptic error message on save. What is the actual error condition it is trying to report? 2. The proper handling of extended attributes without values. Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
2012-02-10Add option preventing metastore from omitting .git dirs.Przemyslaw Pawelczyk
2012-02-10Add .gitignore.Przemyslaw Pawelczyk
2012-02-10Merge debian/ changes from Debian.Romain Francoise
* New maintainer. * Switch (back) to a minimal rules files; restores missing examples. * Switch to source format 3.0 (quilt). * Add debian/watch. * Bump Standards-Version to 3.9.1, no changes needed.
2012-02-10Remove prompting from example Git pre-commit hook.Romain Francoise
Hooks now run with stdin closed (since Git version 1.5.4) and prompting will not work when using a high-level interface such as git-gui or Emacs anyway.
2012-02-10Fix getopt parsing of -f.Romain Francoise
2008-06-23Cleanup help messagev1David Härdeman
2008-06-23Add stricter build flagsDavid Härdeman
2008-06-23Add dynamic metafile pathDavid Härdeman
In some situations it may be useful to have multiple sets of metadata for the same hierarchy (e.g. representing how a file set should appear on different hosts). The ability to select a metadata file may be useful in this case. Patch by Sergio Callegari <sergio.callegari@gmail.com>
2008-03-20Add documentation of the file format used...David Härdeman
2008-03-20First stab at supporting the option of automatically creating emptyDavid Härdeman
directories which are missing. This should help with Debian BR #460998
2008-03-20Detect whether the underlying FS supports xattrsDavid Härdeman
No support for xattrs is treated the same as a file having no xattrs on a file system which does support xattrs. This should fix Debian BR #470184
2008-03-20Add something vaguely useful to READMEDavid Härdeman
2008-03-20Fix unhelpful error messagesDavid Härdeman
(thanks to bug report forwarded by Joey Hess <joey@kitenet.net>)