Skip to content

fsfreeze: check ioctls

Fernando Luis Vazquez Cao linux-fsdevel 1 version New

Get series with b4
b4 am 1311215535.2763.20.camel@nausicaa

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fsfreeze: add FIISFROZEN ioctlfs/compat_ioctl.c fs/ioctl.c fs/super.c +1 more+24 -00 replies
2/2fsfreeze: add BLKISFROZEN ioctlblock/compat_ioctl.c block/ioctl.c fs/block_dev.c +1 more+40 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fsfreeze: check ioctls

The current fsfreeze API lacks a method to check the current freeze status of a superblock. One might be tempted to think that a new vfs ioctl is all we need, but with the current implemetation of fsfreeze it it is possible to umount a freezed filesystem, which means that the only way to check the freeze status is through the block device. For a moment I thought I could get without the vfs version but then I realized that the block device ioctl would not play well with btrfs.

Because of all of the above I ended up implementing both. Al also suggested [1] a thaw-by-block-device ioctl which I am currently working on.

[1] http://marc.info/?l=linux-kernel&m=125361768208298&w=2