From owner-freebsd-scsi Mon Jan 15 1: 2:31 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from tamaris.wanadoo.fr (smtp-rt-12.wanadoo.fr [193.252.19.60]) by hub.freebsd.org (Postfix) with ESMTP id 8A38A37B69B for ; Mon, 15 Jan 2001 01:02:12 -0800 (PST) Received: from villosa.wanadoo.fr (193.252.19.122) by tamaris.wanadoo.fr; 15 Jan 2001 10:02:10 +0100 Received: from hautmedoc.dockes.com (193.250.57.187) by villosa.wanadoo.fr; 15 Jan 2001 10:02:09 +0100 Received: (from dockes@localhost) by hautmedoc.dockes.com (8.9.3/8.9.3) id KAA14063; Mon, 15 Jan 2001 10:02:02 +0100 (MET) From: Jean-Francois Dockes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14946.48266.332620.887204@hautmedoc.dockes.com> Date: Mon, 15 Jan 2001 10:02:02 +0100 (MET) To: mjacob@feral.com Cc: Eric Lee Green , freebsd-scsi@FreeBSD.ORG Subject: Re: Why filemarks in sardpos? In-Reply-To: References: X-Mailer: VM 6.75 under 20.4 "Emerald" XEmacs Lucid Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Matthew Jacob writes: > [cut] > So, all other things being equal, "First Block Value" should be > good enough if one assumes that blocks Z..A get flushed to tape. > > ... > Anyone else out there have an opinion on this? > ... Funny, I was just working with sa last week for the purpose of porting some NDMP backup tape server code. I had trouble with how 'sa' maintains the current tape position (I submitted a few PRs), and I wondered if I could use MTIOCRDSPOS instead, but I was prevented to do this precisely by the flush thing (I didn't even try to use MTIOCRDSPOS, as the code made it clear that it was unusable for my purpose). So, yes, I have an opinion, and it is that no flush should be performed. In practise, I think that only the 'First Block' value is useful for backup software, and its signification is pretty clear. I guess that the comment in the code about how the SCSI spec is vague relate to the 'Last block' value, but I can't really understand what the 'Last Block' thing is good for anyway. Jean-Francois Dockes To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message