Skip to content

Relink unlinked files for checkpoint/restart support

Matt Helsley containers linux-ext4 linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Move sys-wrappersinclude/linux/sys-wrapper.h init/sys-wrapper.h+216 -21624 replies
2/6Create the .relink file_operationfs/namei.c include/linux/fs.h+5 -10 replies
3/6ext3/4: Allow relinking to unlinked filesfs/ext3/namei.c fs/ext4/namei.c+15 -150 replies
4/6Split do_linkat() out of sys_linkatfs/namei.c+51 -280 replies
5/6Checkpoint/restart unlinked filesfs/checkpoint.c fs/namei.c fs/pipe.c +3 more+149 -150 replies
6/6Enable c/r of unlinked fifosfs/pipe.c include/linux/checkpoint.h+5 -10 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchOren Laadan
1/6R-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] Relink unlinked files for checkpoint/restart support

This series enables the relinking of unlinked files for the purpose of enabling checkpoint/restart of tasks with open unlinked files. It relies on Namhyung Kim's sys-wrapper patches to provide unlink and rmdir calls for sys_restart.

There are two patches with long descriptions. Patch 3 describes what we want from the VFS -- relinking support -- and uses ext3/4 as an example of what kinds of changes that entails. Patch 5 then details how we intend to use relinking during checkpoint to enable restart of tasks that have unlinked files open.

Applies to Oren's ckpt-v22-dev branch. I chose Oren's tree because I assume people want to see code showing how relinking will be used. If this is wrong I'll be happy to respin these patches against a more recent branch of mainline.

Cheers,
-Matt Helsley