Re: [PATCH v6] fat: Batched discard support for fat
From: OGAWA Hirofumi
Date: Tue Mar 29 2011 - 03:28:40 EST
Kyungmin Park <kmpark@xxxxxxxxxxxxx> writes:
>> I looked at fstrim.c. It is lowlevel tools to just issue FITRIM - it
>> doesn't use the result at all.
>>
>> Um. Honestly I'd like to see more or wait until real user for now,
>> instead of providing unclear design.
>
> You can find the testcase xfs251(?)
>
> and it's our our usage. After UMS support finished, execute the trim
> command from 0 to MAXINT.
> and periodically call the trim FAT partitions.
It seems to be using fstrim. So state is same with fstrim.
More detail is,
1) This means to trim 0-ULLONG
fstrim mntpoint
2) step for each 1GB
while all blocks; do
fstrim -s start -l step mntpoint
done
Those bring the real problem up on this example. What is right behavior
if start + len is outside the end of FS? Also I think other issues on
this thread are same state.
Thanks.
--
OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/