xfs
[Top] [All Lists]

Re: [PATCH v3 1/2] xfstests: introduce 279 for SEEK_DATA/SEEK_HOLE sanit

To: Ben Myers <bpm@xxxxxxx>
Subject: Re: [PATCH v3 1/2] xfstests: introduce 279 for SEEK_DATA/SEEK_HOLE sanity test
From: Jeff Liu <jeff.liu@xxxxxxxxxx>
Date: Fri, 11 May 2012 10:32:02 +0800
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <20120510202810.GQ16881@xxxxxxx>
Organization: Oracle
References: <4F410ABF.7070001@xxxxxxxxxx> <20120510202810.GQ16881@xxxxxxx>
Reply-to: jeff.liu@xxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20120313 Thunderbird/3.1.20
On 05/11/2012 04:28 AM, Ben Myers wrote:

> On Sun, Feb 19, 2012 at 10:44:15PM +0800, Jeff Liu wrote:
>> Introduce 279 for SEEK_DATA/SEEK_HOLE sanity tests.
>>
>> Changes to v3:
>> --------------
>> * Redirect seek sanity test run log to 279.full.
>>
>> Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
> 
> ...
> 
>> diff --git a/src/seek_sanity_test.c b/src/seek_sanity_test.c
>> new file mode 100644
>> index 0000000..8f36dee
>> --- /dev/null
>> +++ b/src/seek_sanity_test.c
>> @@ -0,0 +1,683 @@
> 
> ...
> 
>> +static void get_file_system(int fd)
>> +{
>> +    struct statfs buf;
>> +
>> +    if (!fstatfs(fd, &buf))
>> +            fprintf(stdout, "File system magic#: 0x%x\n", buf.f_type);
> 
> Hrm...
> 
> # make
> Building include
> Building lib
> Building ltp
> Building src
> [DEP]
> [CC]    seek_sanity_test
> seek_sanity_test.c: In function 'get_file_system':
> seek_sanity_test.c:46: warning: format '%x' expects type 'unsigned int', but 
> argument 3 has type 'long int'
> Building aio-dio-regress
> Building m4
> 
> I'll fix that up for you.

Thanks a lot!

-Jeff

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


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