diff options
-rw-r--r-- | obnamlib/plugins/show_plugin.py | 5 | ||||
-rw-r--r-- | yarns/0300-kdirstat-integration.yarn | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/obnamlib/plugins/show_plugin.py b/obnamlib/plugins/show_plugin.py index 2e942f03..4b97ea82 100644 --- a/obnamlib/plugins/show_plugin.py +++ b/obnamlib/plugins/show_plugin.py @@ -287,8 +287,13 @@ class ShowPlugin(obnamlib.ObnamPlugin): mode_str = "BlockDev\t" elif stat.S_ISCHR(mode): mode_str = "CharDev\t" + elif stat.S_ISFIFO(mode): + mode_str = "FIFO" elif stat.S_ISSOCK(mode): mode_str = "Socket\t" + else: + # Unhandled, make it look like a comment + mode_str = "#UNHANDLED\t" enc_filename = filename.replace("%", "%25") enc_filename = enc_filename.replace(" ", "%20") diff --git a/yarns/0300-kdirstat-integration.yarn b/yarns/0300-kdirstat-integration.yarn index a2ff8e69..695994fe 100644 --- a/yarns/0300-kdirstat-integration.yarn +++ b/yarns/0300-kdirstat-integration.yarn @@ -17,6 +17,16 @@ file. THEN first line of C matches [kdirstat 4.0 cache file] AND for each file in directory L a line in the kdircache C matches it +Now a backup containing some interesting objects + + SCENARIO create and do a check of a kdirstat cache of interesting objects + ASSUMING extended attributes are allowed for users + GIVEN directory L with interesting filesystem objects + WHEN user U backs up directory L to repository R + AND user U creates a kdirstat cache file C of repository R + THEN first line of C matches [kdirstat 4.0 cache file] + AND for each file in directory L a line in the kdircache C matches it + Validating the cache file ------------------------- |