From: Eric Sandeen <sandeen@sandeen.net>
To: Masatake YAMATO <yamato@redhat.com>
Cc: e2fsprogs-ext4@lists.sourceforge.net,
util-linux-ng@vger.kernel.org, linux-cluster@redhat.com,
htaira@redhat.com, xfs@oss.sgi.com
Subject: Re: [PATCH] fsfreeze: suspend and resume access to an filesystem
Date: Thu, 13 May 2010 09:54:12 -0500 [thread overview]
Message-ID: <4BEC1294.2000904@sandeen.net> (raw)
In-Reply-To: <20100513.163313.67205054690538917.yamato@redhat.com>
Masatake YAMATO wrote:
> Hi,
>
> (The disscussion can be found at
> http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/3181/focus=3193)
>
>> Hello.
>>
>> I understand reason when it use with device-mapper.
>> I think, fsfreeze command need for filesystem on physical block device without device-mapper.
>> For example, by storage controller based LUN snapshot.
>>
>> # fsfreeze -f /data
>> # ssh root@192.168.0.1 "take snapshot lun0"
>> # fsfreeze -u /data
>>
>> * /data is mounted physical block device(/dev/sdb1)
>
> As Hajime wrote, taking snapshot in physical storage level is popular
> situation. It seems that xfs_freeze can be used for the purpose but
> the name `xfs_freeze' gives the impression that the command is only
> for xfs.
>
> My argument can be applicable to gfs2_tool, too. "gfs2_tool freeze"
> also does ``ioctl(fd, FIFREEZE, 0)''.
>
>
> One of the solution is to add xxx_freeze for each file system implementation
> which has freeze/unfreeze methods to eash util-xxx, xxx-progs or xxx-utils.
> e.g. Adding ext4_freeze or ext3_freeze command to e2fsprogs package.
>
> However, I think this is not good idea. Linux provides file system neutral
> interface already. So it is better to have file system neutral command(fsfreeze)
> and the command is included in file system neutral package, util-linux-ng.
I tend to agree, since there is a common interface, there is no reason to
have filesystem-specific tools which all do the same thing.
Note that xfs_freeze existed long before the common interface, and in fact
the common ioctl number was chosen based on the xfs number, so that explains
the existence of the xfs-specific tool, and why it does happen to work
now on non-xfs filesystems....
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2010-05-13 14:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1194896399.685821273733580088.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com>
2010-05-13 7:33 ` [PATCH] fsfreeze: suspend and resume access to an filesystem Masatake YAMATO
2010-05-13 14:54 ` Eric Sandeen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BEC1294.2000904@sandeen.net \
--to=sandeen@sandeen.net \
--cc=e2fsprogs-ext4@lists.sourceforge.net \
--cc=htaira@redhat.com \
--cc=linux-cluster@redhat.com \
--cc=util-linux-ng@vger.kernel.org \
--cc=xfs@oss.sgi.com \
--cc=yamato@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.