xfs
[Top] [All Lists]

[Bug 400] lvm2 snapshots?

To: xfs-master@xxxxxxxxxxx
Subject: [Bug 400] lvm2 snapshots?
From: bugzilla-daemon@xxxxxxxxxxx
Date: Fri, 1 Apr 2005 04:46:26 -0800
Sender: linux-xfs-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=400





------- Additional Comments From walter@xxxxxxx  2005-01-04 04:46 PDT -------
I found out that xfs_freeze results in an XFS_IOC_FREEZE in
xfs/linux-2.6/xfs_ioctl.c
This calls freeze_bdev()

We are using device mapper and I suspect that dm_suspend() should be called
instead. dm_suspend() is in drivers/md/dm.c and the comments for this function
describe exactly what you want xfs_freeze to do:

<QUOTE>
/*
 * We need to be able to change a mapping table under a mounted
 * filesystem.  For example we might want to move some data in
 * the background.  Before the table can be swapped with
 * dm_bind_table, dm_suspend must be called to flush any in
 * flight bios and ensure that any further io gets deferred.
 */
int dm_suspend(struct mapped_device *md)
</QUOTE>

This function is also called when you do 'dmsetup suspend /dev/mapper/some_lv'
from the shell.

As a workaround, I am now using 'dmsetup suspend' rather than 'xfs_freeze -f'.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>