Re: [PATCH] xfstests: add _require_freeze and minor cleanups

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

 



On 9/21/12 2:59 PM, Ben Myers wrote:
> On Fri, Sep 21, 2012 at 11:47:49AM -0500, Eric Sandeen wrote:
>> On 9/21/12 11:38 AM, Ben Myers wrote:
>>> Hey Eric,
>>>

...

>>> Pretty good idea to generalize _require_freeze.  It looks like xfs_freeze is a
>>> script that uses xfs_io which uses xfsctl XFS_IOC_FREEZE.  So isn't what you
>>> have here xfs specific?  It wouldn't work for the other filesystems that
>>> implement s_op.freeze_fs:
>>
>> It got elevated to a generic ioctl:
>>
>> fs/xfs/xfs_fs.h:
>> /*      XFS_IOC_FREEZE            -- FIFREEZE   119      */
>> /*      XFS_IOC_THAW              -- FITHAW     120      */
>>
>> to:
>>
>> include/linux/fs.h:
>> #define FIFREEZE        _IOWR('X', 119, int)    /* Freeze */
>> #define FITHAW          _IOWR('X', 120, int)    /* Thaw */
> 
> Ah, great.  I see it now.  It looks like test 119 is also using freeze.  Should
> that one also _require_freeze?

Since it's xfs-specific, I didn't think it was necessary, but it could.

-Eric

> Reviewed-by: Ben Myers <bpm@xxxxxxx>
> 

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux