Skip to contentSkip to conversation

filesystem -- reflink

LSF/MM mingming cao 3 participants 3 messages Jan 15, 2014 – Jan 17, 2014 VFS

lore
Share & tools
lore
#0 lore raw

Hello,

I'd like to attend Linux storage and filesystem summit. I am interested in discussion of general lockless direct io and more interested in discussion of reflink support for filesystem. Btrfs and OCFS2 has this support, My goal is explore what's best to way this support for ext4. If there is any crossover work between filesystem and vfs people, or filesystem and dm layer I am more than happy to discuss about it too.

Thanks,
Mingming

reviewer
#1 lore raw

Hello,

Quoted 7 lines · mingming cao

I'd like to attend Linux storage and filesystem summit. I am interested in discussion of general lockless direct io and more interested in discussion of reflink support for filesystem. Btrfs and OCFS2 has this support, My goal is explore what's best to way this support for ext4. If there is any crossover work between filesystem and vfs people, or filesystem and dm layer I am more than happy to discuss about it too.

There was a project for implementing COW for ext4 but it was a really
major surgery and in the end didn't get to an upstreamable state. Reflink is somewhat simpler than general COW because it's only about fs data. In particular implementing reflink with a file granularity (i.e., a type of hardlink which is automatically converted to a copy when first opened for writing) is relatively simple to do but I'm not sure how useful it is. Doing reflink properly with block granularity is harder with block refcounting etc.

Do you have any particular usecase in mind?

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#2 lore raw
Quoted 19 lines · Jan Kara

Hello,

Quoted 7 lines · mingming cao

I'd like to attend Linux storage and filesystem summit. I am interested in discussion of general lockless direct io and more interested in discussion of reflink support for filesystem. Btrfs and OCFS2 has this support, My goal is explore what's best to way this support for ext4. If there is any crossover work between filesystem and vfs people, or filesystem and dm layer I am more than happy to discuss about it too.

There was a project for implementing COW for ext4 but it was a really
major surgery and in the end didn't get to an upstreamable state. Reflink is somewhat simpler than general COW because it's only about fs data. In particular implementing reflink with a file granularity (i.e., a type of hardlink which is automatically converted to a copy when first opened for writing) is relatively simple to do but I'm not sure how useful it is. Doing reflink properly with block granularity is harder with block refcounting etc.

Quoted 1 line

Do you have any particular usecase in mind?

The use case I keep hearing for reflink in XFS is optimising distributed filesystem snapshot implementations, which tend to require file block level COW semantics on a per-file basis...

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]