From df28c9a49c649b228dfcae47254cfaea60b32dde Mon Sep 17 00:00:00 2001 From: "https://launchpad.net/~stephane-gourichon-lpad" Date: Sun, 30 Oct 2016 19:19:22 +0000 Subject: Added a comment: Bitten again by "E" backend, wish "e" backend. --- ...ent_6_2ae2cc3dba5db4d4354a5b49c490272e._comment | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/walkthrough/renaming_files/comment_6_2ae2cc3dba5db4d4354a5b49c490272e._comment (limited to 'doc/walkthrough/renaming_files') diff --git a/doc/walkthrough/renaming_files/comment_6_2ae2cc3dba5db4d4354a5b49c490272e._comment b/doc/walkthrough/renaming_files/comment_6_2ae2cc3dba5db4d4354a5b49c490272e._comment new file mode 100644 index 000000000..d6db35568 --- /dev/null +++ b/doc/walkthrough/renaming_files/comment_6_2ae2cc3dba5db4d4354a5b49c490272e._comment @@ -0,0 +1,32 @@ +[[!comment format=mdwn + username="https://launchpad.net/~stephane-gourichon-lpad" + nickname="stephane-gourichon-lpad" + avatar="http://cdn.libravatar.org/avatar/02d4a0af59175f9123720b4481d55a769ba954e20f6dd9b2792217d9fa0c6089" + subject="Bitten again by "E" backend, wish "e" backend." + date="2016-10-30T19:19:21Z" + content=""" +Changing file extension is arguably not a very common use case. But changing extension case is more common, especially when copying files from FAT filesystems through different ways (Card reader, plugging device directly), and causes troubles. + +# Concrete case + +A set of files were imported with extension NEF and JPG, by mistake (forgot to rename them first), using default (or is it?) backend SHA256E. + +When using `git annex reinject --known` to cleanup another copy, files were not detected as known. + +This will happen again and feels not very good. + +# Workaround + +Thanks to CandyAngel I know I can rename then use `git annex migrate --force` and `reinject` again. + +# Better solution + +A SHA256e backend (that squashes extensions to lowercase) would not have this problem. + +# Additional information + +Why not switch to plain SHA256 backend? I'm a little paranoid (which makes me a good fit for using git-annex overall). + +One of the reason I use git-annex is that its storage format is actually simple, and files can be accessed even on a computer that can read the plain filesystem, without git or git-annex required. But in the lifetime of a filesystem, many bad things can happen and details of storage format may make a difference in case of major recovery (or even sanity check) scenario. Hashes without extension feel somehow uncomfortable. Lowercase extension backends feel much better. + +"""]] -- cgit v1.2.3