Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754553AbZKTRRA (ORCPT ); Fri, 20 Nov 2009 12:17:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753529AbZKTRRA (ORCPT ); Fri, 20 Nov 2009 12:17:00 -0500 Received: from mail2.shareable.org ([80.68.89.115]:57705 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752775AbZKTRQ7 (ORCPT ); Fri, 20 Nov 2009 12:16:59 -0500 Date: Fri, 20 Nov 2009 17:16:56 +0000 From: Jamie Lokier To: Jan Blunck Cc: linux-fsdevel@vger.kernel.org, Christoph Hellwig , Alan Cox , Linux-Kernel Mailinglist , Andrew Morton , Thomas Gleixner , jkacur@redhat.com, Arnd Bergmann , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Willem Riede , "James E.J. Bottomley" Subject: Re: [PATCH 03/15] osst: Update ppos instead of using file->f_pos Message-ID: <20091120171656.GI20634@shareable.org> References: <1258735245-25826-1-git-send-email-jblunck@suse.de> <1258735245-25826-4-git-send-email-jblunck@suse.de> <20091120171317.GH20634@shareable.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091120171317.GH20634@shareable.org> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1031 Lines: 23 Jamie Lokier wrote: > Jan Blunck wrote: > > osst_read()/osst_write() modify file->f_pos directly instead of the ppos > > given to them. The VFS later updates the file->f_pos and overwrites it > > with the value of ppos. > > I notice st.c doesn't use or update file->f_pos (or *ppos), so > userspace probably won't be caring about f_pos from osst.c (they're > both SCSI tape drivers). And osst.c doesn't use the value, it just > increases it with each transfer. It doesn't even reset the value to > zero when rewinding the tape, so it's not that meaningful. > > So how about just removing those modifications to file->f_pos from osst.c? Or alternatively, perhaps they are missing from st.c. I don't know, but userspace can't have been all that dependent on the value :-) -- Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/