From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Chow Subject: LFS/non-LFS error handling Date: Sat, 13 Apr 2002 00:46:14 +0800 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <3CB70F56.8030004@shaolinmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: To: linux-fsdevel@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Dear all, If my fs don't support LFS (files larger than 4GB), what should I set in my sb->s_maxbytes? In kernel 2.4.2 , I have experieced if not set the s_maxbytes generic_file_write() will fail, but for later version of kernel I simply leave it unset, so far I don't have any problem. If it is wrong, what should s_maxbytes=? . Since this behaviour changes across kernel version, is there a standard implemenation? Since it still work for me for not setting the s_maxbytes, it seems to me there is a potential risk of data corruption at limit points, because don't know who to handle the over flow situation, does this handle by VFS? or I have to take care myself? Thanks. regards, David