From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754297AbZKTRNT (ORCPT ); Fri, 20 Nov 2009 12:13:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752861AbZKTRNS (ORCPT ); Fri, 20 Nov 2009 12:13:18 -0500 Received: from mail2.shareable.org ([80.68.89.115]:33875 "EHLO mail2.shareable.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751652AbZKTRNR (ORCPT ); Fri, 20 Nov 2009 12:13:17 -0500 Date: Fri, 20 Nov 2009 17:13:17 +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: <20091120171317.GH20634@shareable.org> References: <1258735245-25826-1-git-send-email-jblunck@suse.de> <1258735245-25826-4-git-send-email-jblunck@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1258735245-25826-4-git-send-email-jblunck@suse.de> 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 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? -- Jamie