New utility for NILFS2 partition
From: Sergey Kamenev
Date: Mon Dec 23 2019 - 11:24:22 EST
Hi folks!
I wrote utility for NILFS2 partition:
n2u
Repository: https://github.com/sukamenev/nilfs2_tools
She's working like "svn" command.
n2u can display the change history of a specific file / directory:
***************
n2u log filename
***************
The output is something like this:
CHECKPOINT DATE TIME TYPE SIZE MODE
1787552 2019-11-24 22:08:00 first 7079 cp
1792659 2019-11-25 23:09:05 changed 7081 cp
It works quite quickly for the chosen implementation method: it searches for differences between files using the bisection method, quickly mounting and comparing the file / directory in different images.
You can specify a range of checkpoints using the -cp key CP1: CP2 or -cp {YEAR-MM-DD}: {YEAR-MM-DD}.
You can also see the difference between the checkpoints for a specific file or directory:
************************
n2u diff -r cp1: cp2 filename
************************
You can display the entire chronology of changes: all the differences between the checkpoints of a specific file / directory:
****************************
n2u blame [-r cp1: cp2] filename
****************************
The date range in this command is also supported.
Happy using!
Sergey Kamenev