Re: autoversioning?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2016-12-09 06:02, Ulli Horlacher wrote:
Is file autoversioning possible with btrfs?

I have a VMS background, where the standard filesystem automatically
creates a new version for every file that is written.

The number of versions can be controlled globally, on directory or on file
base.

With btrfs I can create manually a file version (clone) with
"cp -a --reflink"
but I want this to be done automatically.

I could set up an incron-job (inotify), but perhaps there is a better,
easier solution?

The first thing that comes to mind is a FUSE module I saw a while back that does this. AFAIK, it doesn't do any reflinking, but it handles the COW needed for the versioning itself, so it works on any filesystem, not just BTRFS (and you could easily run batch deduplication from time to time on the backing storage so that you have things nicely reflinked). I sadly don't remember what the FUSE module was called though (I remember it because I thought the idea was neat, not because I need something like that), but I do distinctly remember that it exists.

Alternatively, something using fanotify would probably work better than both options, but it would have to be pretty smart to be reliable.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux