summaryrefslogtreecommitdiff
path: root/yarns/0300-kdirstat-integration.yarn
AgeCommit message (Collapse)AuthorFilesLines
2016-10-29kdirstat: Correct output syntax for FIFOIan Campbell1-2/+2
There needs to be some whitspace after the FIFO tag, otherwise k4dirstat (silently!) stops parsing at this entry. This was wrong in the initial commit to add FIFO support to kdirstat 4ce858d7c593 ("kdirstat: Handled named pipes (fifos)"), manual testing at the time apparently only verified that the file was generated, not that it was valid, sorry. I updated the test yarns to also check for FIFO, however this is only run "ASSUMING extended attributes are allowed for users", which does not appear to be the case on my system. Also the testshould probably test for all sorts of files, not just regular and FIFO. Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
2015-10-11kdirstat: Handled named pipes (fifos)Ian Campbell1-0/+10
For some reason this was missing from the mode_str lookup, it is the only type listed on https://github.com/thomas-joiner/k4dirstat/blob/master/kdirstat/cache-file-format.txt which wasn't handled. For unknown file types emit a commented "#UNHANDLED ..." line rather than crashing with a backtrace. Add a yarn for this scenario, although I've not been able to run it due to "ASSUMING extended attributes are allowed for users". Real world use has been tested by Florian Geyer, http://listmaster.pepperfish.net/pipermail/obnam-support-obnam.org/2015-September/003836.html Cc: Florian Geyer <blueice@fobos.de>
2014-12-08Implement support for listing a generation in kdirstat.cache formatIan Campbell1-0/+25
On Sat, 2014-12-06 at 19:15 +0200, Lars Wirzenius wrote: > On Sun, Nov 16, 2014 at 11:24:11AM +0000, Ian Campbell wrote: > > This implements an ls variant whose output format is compatible with the > > kdirstat cache format. The best reference I can find for this is from an old fork: > > https://github.com/thomas-joiner/k4dirstat/blob/master/kdirstat/cache-file-format.txt > > > > Recent versions of k4dirstat appear to be able to read the files produced just > > fine, although this document is not present in their source AFAICT. > > > > I find k4dirstat to be an excellent way to visualise what is included in a > > backup, e.g. for the purposes of excluding file types or marking directories > > with a CACHEDIR.TAG. My previous solution involved post-processing the output > > of ls which require a ssh to the machine with the files (for stat() purposes). > > This approach pulls all of the data out of the obnam repo, so is much faster, > > less hacky and gets the status of the actual generation and not the current > > files etc. > > Thank you, Ian. I've applied the patch and pushed the changes to > master on git.liw.fi. Thanks. > It would be nice if someone wrote a test case for this (in yarn form), > so that I'll notice when I break it. Your wish etc etc... (it even found a bug!) 8<---------------- >From 8f1aecfee8ec34e5d060f81ee47f9fd8aacdc201 Mon Sep 17 00:00:00 2001 From: Ian Campbell <ijc@hellion.org.uk> Date: Sun, 7 Dec 2014 15:19:57 +0000 Subject: [PATCH] Add a yarn for testing kdirstat cachefile generation. Rather simplistic, but caught one bug (unwanted newline at start of file) which is also fixed here.