xfs
[Top] [All Lists]

Re: [PATCH] generic: require filesize to be greater than fs block size i

To: Stanislav Kholmanskikh <stanislav.kholmanskikh@xxxxxxxxxx>
Subject: Re: [PATCH] generic: require filesize to be greater than fs block size in generic/240
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 10 Dec 2013 22:55:25 -0800
Cc: xfs@xxxxxxxxxxx, vasily.isaenko@xxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1386321845-9221-1-git-send-email-stanislav.kholmanskikh@xxxxxxxxxx>
References: <1386321845-9221-1-git-send-email-stanislav.kholmanskikh@xxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
> -# 2 threads, fs block sized writes, 64k filesize, stride through file by
> +if [ $file_size -lt $fs_block_size ]; then
> +     file_size=$fs_block_size
> +fi

We'd need the file size to be a multiple of the block size to make this
useful, I'd take 4 or 8 times as a useful default.

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