[Top] [All Lists]

Re: [PATCH 2/10] xfs: xfs_bulkstat_single consolidation

To: Mark Tinguely <tinguely@xxxxxxx>
Subject: Re: [PATCH 2/10] xfs: xfs_bulkstat_single consolidation
From: Jeff Liu <jeff.liu@xxxxxxxxxx>
Date: Tue, 31 Dec 2013 17:51:33 +0800
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <52C1BCE5.1070707@xxxxxxx>
References: <52BEB3E7.2080706@xxxxxxxxxx> <52C1BCE5.1070707@xxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
On 2013å12æ31æ 02:35, Mark Tinguely wrote:
> On 12/28/13 05:20, Jeff Liu wrote:
>> From: Jie Liu<jeff.liu@xxxxxxxxxx>
>> In xfs_bulkstat_single(), xfs_bulkstat_one() and xfs_bulkstat() might
>> return different error if either call failed, we'd better return the
>> proper error in this case.  Moreover, the function argument done is
>> useless in terms of xfs_ioc_bulkstat(), hence we can get rid of it.
>> Signed-off-by: Jie Liu<jeff.liu@xxxxxxxxxx>
>> ---
> Yes, I know dmapi is not loved here but SGI still uses it and it wants
> the done flag still..
My mistake.  At that time, I noticed that there has comments about this
in xfs_ioc_bulkstat(), i.e,

 /* done = 1 if there are more stats to get and if bulkstat */
 /* should be called again (unused here, but used in dmapi) */

However, I failed to find out why it would be called by going through
the dmapi source code...

I'll keep this argument in next round of post.


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