Re: [RFC] ext3 freeze feature

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Christoph Hellwig <hch@...>, Andreas Dilger <adilger@...>
Cc: Theodore Tso <tytso@...>, <linux-ext4@...>, <linux-fsdevel@...>, <linux-kernel@...>
Date: Friday, February 15, 2008 - 7:51 am

Hi,

Christoph Hellwig wrote:

According to Documentation/ioctl-number.txt,
XFS_IOC_XXXs (_IOWR('X', aa, bb)) are defined for XFS like below.
From Documentation/ioctl-number.txt:
----------------------------------------------------------------------------
Code    Seq#    Include File            Comments
========================================================
:                 :
'X'     all     linux/xfs_fs.h
----------------------------------------------------------------------------
So XFS_IOC_FREEZE and XFS_IOC_THAW cannot be lifted to generic code simply.
I think we should create new generic numbers for freeze and thaw
like FIBMAP as followings.
linux/fs.h:
#define FIFREEZE _IO(0x00,3)
#define FITHAW   _IO(0x00,4)

And xfs_freeze calls XFS_IOC_FREEZE with a magic number 1, but what is 1?
Instead, I'd like the sec to timeout on freeze API in order to thaw
the filesystem automatically.  It can prevent a filesystem from staying
frozen forever.
(Because a freezer may cause a deadlock by accessing the frozen filesystem.)

Any comments are very welcome.

Cheers, Takashi 

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] ext3 freeze feature, Takashi Sato, (Fri Feb 8, 6:48 am)
Re: [RFC] ext3 freeze feature, Andreas Dilger, (Fri Feb 8, 9:26 am)
Re: [RFC] ext3 freeze feature, Christoph Hellwig, (Fri Feb 8, 10:59 am)
Re: [RFC] ext3 freeze feature, Takashi Sato, (Fri Feb 15, 7:51 am)
Re: [RFC] ext3 freeze feature, Christoph Hellwig, (Sat Feb 16, 9:25 am)
Re: [RFC] ext3 freeze feature, Eric Sandeen, (Fri Feb 15, 10:24 am)
Re: [RFC] ext3 freeze feature, , (Tue Feb 19, 7:27 am)
[RFC] freeze feature ver 1.0, Takashi Sato, (Fri Mar 7, 5:13 am)
[RFC] ext3 freeze feature ver 0.2, Takashi Sato, (Tue Feb 26, 4:20 am)
Re: [RFC] ext3 freeze feature ver 0.2, Eric Sandeen, (Tue Feb 26, 12:39 pm)
Re: [RFC] ext3 freeze feature ver 0.2, Andreas Dilger, (Tue Feb 26, 1:08 pm)
Re: [RFC] ext3 freeze feature ver 0.2, Takashi Sato, (Wed Feb 27, 4:31 am)