[PATCH] xfstests: add _require_freeze and minor cleanups
Eric Sandeen
sandeen at redhat.com
Fri Sep 21 15:20:45 CDT 2012
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 at sgi.com>
>
More information about the xfs
mailing list