generic/299: limit max file size
authorYufen Yu <yuyufen@huawei.com>
Tue, 26 Feb 2019 14:11:53 +0000 (22:11 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 2 Mar 2019 09:18:54 +0000 (17:18 +0800)
commitd34e87ea0f948909baea0a899926580c76e02a67
treeafc21949ec5f01498d409e2b890563995e46ded0
parent0680ff2ea5313b38fada5491b51c4e90883dd91d
generic/299: limit max file size

For some filesystem, such as vfat, the max support file size is 4G.
We limit the max size and let the test go on running.

Fix it by moving the function get_max_file_size() of generci/485 to
common/rc, and add the max filesize limit to generic/299.

Signed-off-by: Yufen Yu <yuyufen@huawei.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/rc
tests/generic/299
tests/generic/485