[Ocfs2-users] is it possible to have several reflinks of one file ?

Herbert Van Den Bergh herbert.van.den.bergh at oracle.com
Thu Jan 21 09:58:11 PST 2021



> On Jan 21, 2021, at 8:39 AM, Lentes, Bernd <bernd.lentes at helmholtz-muenchen.de> wrote:
> 
> 
> 
> ----- On Jan 15, 2021, at 6:47 PM, herbert van den bergh HERBERT.VAN.DEN.BERGH at ORACLE.COM wrote:
> 
>> On Jan 15, 2021, at 6:00 AM, Lentes, Bernd <bernd.lentes at helmholtz-muenchen.de>
>> wrote:
>>> 
>>> Hi,
>>> 
>>> is it possible to have several reflinks of one file ?
>>> I'd like to create each day one reflink, for one week, thens start to overwrite
>>> them from day to day, so that i never have more than 7 reflinks of the file.
>>> Is that possible ?
>> 
>> Absolutely. Not sure what you mean by overwriting them. If you’re doing this to
>> get a daily snapshot of your data and only keep the last 7, then you can simply
>> delete the earliest one when you create the next one. The reflinked blocks on
>> disk will remain because they’re still referenced by the other 7 reflinks.
>> 
>> Thanks,
>> Herbert.
>> 
> 
> Hi Herbert,
> 
> how do i delete the old ones ? Just with rm or do i have to use unlink ?

Just with rm.

Thanks,
Herbert.

> 
> Bernd
> Helmholtz Zentrum München
> 
> Helmholtz Zentrum Muenchen
> Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
> Ingolstaedter Landstr. 1
> 85764 Neuherberg
> https://urldefense.com/v3/__http://www.helmholtz-muenchen.de__;!!GqivPVa7Brio!P9XD3w3x9VibDbI9erApwXOZvKXw3a4B8uD5S3RCJHuH7U4qkrRelp0N0fhQKsxT7vJt1apB$ 
> Aufsichtsratsvorsitzende: MinDir.in Prof. Dr. Veronika von Messling
> Geschaeftsfuehrung: Prof. Dr. med. Dr. h.c. Matthias Tschoep, Kerstin Guenther
> Registergericht: Amtsgericht Muenchen HRB 6466
> USt-IdNr: DE 129521671



More information about the Ocfs2-users mailing list