From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Luis Vazquez Cao Subject: [PATCH 0/2] fsfreeze: check ioctls Date: Thu, 21 Jul 2011 11:32:15 +0900 Message-ID: <1311215535.2763.20.camel@nausicaa> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Christoph Hellwig , Eric Sandeen , Josef Bacik , linux-fsdevel@vger.kernel.org To: Al Viro Return-path: Received: from serv2.oss.ntt.co.jp ([222.151.198.100]:42697 "EHLO serv2.oss.ntt.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751660Ab1GUCcR (ORCPT ); Wed, 20 Jul 2011 22:32:17 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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