Lreflink High Level Design

From Lustre Wiki
Revision as of 01:08, 24 September 2019 by Lixi (talk | contribs) (Created page with "== Introduction == This documentation describes the design of Reflink for Lustre (Lreflink). Reflink is a feature that exists in Btrfs/XFS (not Ext4 or ZFS). When copying a fi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

This documentation describes the design of Reflink for Lustre (Lreflink). Reflink is a feature that exists in Btrfs/XFS (not Ext4 or ZFS). When copying a files with cp --reflink=always, it takes advantage copy-on-write in order to do a quick copy of data by merely adding another reference to the shared data blocks, rather than having to read all the data and write it out again.

Client side read/write to Lreflink file is as normal

When client reads/writes to reflink files, it writes or reads in the same way as normal files. However, client needs to provide interfaces to show the Lreflink info of a file.