From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] fs: kill default_llseek Date: Mon, 9 May 2011 10:06:14 -0400 Message-ID: <20110509140614.GB7669@infradead.org> References: <1304605677-1882-1-git-send-email-josef@redhat.com> <201105081623.39876.arnd@arndb.de> <4DC7EAD7.9070606@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, hch@infradead.org To: Josef Bacik Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:57378 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751567Ab1EIOGT (ORCPT ); Mon, 9 May 2011 10:06:19 -0400 Content-Disposition: inline In-Reply-To: <4DC7EAD7.9070606@redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, May 09, 2011 at 09:23:35AM -0400, Josef Bacik wrote: > So every sb has s_maxbytes set to something, is this not acceptable > for character devices? I guess some can let you seek well past this > point so we should just do some if (S_ISCHR()) return or whatever? Probably for all special files just to be sure, although pipes/sockets/fifos aren't searchable, and block devices tend to get redirected to their own superblock.