Re: [PATCH] fsfreeze: suspend and resume access to an filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/11/2010 07:25 AM, 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.
> 
> usage:
>   # fsfreeze -f /var/ftp
>   # lvcreate -s -L 10G -n ls_ftpd_snap /dev/vg_data/lv_ftpd
>   # fsfreeze -u /var/ftp

This example is wrong, device-mapper code always calls freeze_bdev() here
(which is the same like fsfreeze ioctl).

Actually, every DM suspend ioctl calls this if there is nolockfs flag specified
(see man dmsetup suspend --nolockfs description).

Calling xfs_freeze (or fsfreeze) before lvcreate -s is obsolete, please avoid this!

(I guess fs is already unfrozen before the fsfreeze -u call above.)
(And there was bug in some kernel that calling twice freeze caused real freeze:-)

Milan
--
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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux