lkml.org 
[lkml]   [2019]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectNew utility for NILFS2 partition
Date
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


\
 
 \ /
  Last update: 2019-12-23 17:25    [W:0.025 / U:3.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site