From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sunil Mushran Subject: Re: [PATCH 1/2] fs: add SEEK_HOLE and SEEK_DATA flags Date: Thu, 21 Apr 2011 14:29:39 -0700 Message-ID: <4DB0A1C3.6050700@oracle.com> References: <1303414954-3315-1-git-send-email-josef@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Josef Bacik , linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, hch@infradead.org To: Theodore Tso Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 04/21/2011 01:45 PM, Theodore Tso wrote: > On Apr 21, 2011, at 3:42 PM, Josef Bacik wrote: >> + case SEEK_DATA: >> + case SEEK_HOLE: >> + return -EINVAL; >> } > > Maybe we should be returning EOPNOTSUPP? > > -- Ted For SEEK_HOLE yes. But we could let the default SEEK_DATA be a null-op.