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

Henrik Zagerholm henke at mac.se
Tue Mar 28 22:39:05 GMT 2006


29 mar 2006 kl. 00:18 skrev simo:

> 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:
It is never easy when dealing with MS code logic =)
> open original file
> crete a temp file with modifications
> delete original file
> rename temp file to original
True, but as this is the case it would be rather simple just handle  
the delete event as the recycle module does right now and keep that  
one as old version. =)
>
> 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