[Samba] File versioning with Samba (on a Linux filesystem)?

simo idra at samba.org
Tue Mar 28 22:18:45 GMT 2006


On Tue, 2006-03-28 at 14:12 -0800, Jeremy Allison wrote:
> On Tue, Mar 28, 2006 at 10:40:20PM +0200, Henrik Zagerholm wrote:
> > 
> > 28 mar 2006 kl. 22:27 skrev Tomasz Chmielewski:
> > 
> > >Henrik Zagerholm wrote:
> > >>I'm pretty sure this can be done with a VFS module.
> > >>I couldn't say exactly which one though.
> > >
> > >I guess there is no such VFS module :)
> > >
> > OK, but as he also asked for deleted recycle support, I'm about 50%  
> > correct as there is a recycle VFS module :)
> > 
> > But wouldn't it be possible to write a version control VFS module?
> > 
> > That intercept saves of existing files and saves the old one with a  
> > different name?
> > 
> > I might be really wrong here :)
> 
> No you're correct - this is a perfect use for a VFS module.

It is, but it is not easy at all to properly handle all cases,
think for example of how some MS Office apps handle documents:

open original file
crete a temp file with modifications
delete original file
rename temp file to original

ideally these operations should end up just being a single commit of a
new version of the original file in a versioning system, no deletes, no
renames.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org



More information about the samba mailing list