Hi Hajime, On Tue, May 11, 2010 at 01:25:09AM -0400, Hajime Taira wrote: > Here is patch that add new command fsfreeze. > 'fsfreeze' suspend and resume access to an filesystem (Linux Ext3/4, ReiserFS, JFS, XFS) > It like xfs_freeze command for XFS filesystem. I ported one for other filesystem. > Because util-linux-ng should have this. I think so. I have doubts that we need this command. I have talked about it with FS developers and response was pretty vague -- it seems that the command is pointless for normal users/admins and crazy people who need to backup by dd if=/dev/foo of=backup.img can install and use xfs_freeze. > usage: > # fsfreeze -f /var/ftp > # lvcreate -s -L 10G -n ls_ftpd_snap /dev/vg_data/lv_ftpd This is unnecessary. DM freezes FS automatically. See fs/ioctl.c and drivers/md/dm.c in kernel -- both calls freeze_bdev(). > # fsfreeze -u /var/ftp BTW, the ioctls are pretty ugly. It requires mountpoint as an argument, but it's implemented by freeze_bdev() that uses block device. It would be more sane to have something like BLKFREEZEFS. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html