From owner-freebsd-bugs Wed Jan 10 6: 0:24 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D2F5B37B402 for ; Wed, 10 Jan 2001 06:00:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0AE00u61465; Wed, 10 Jan 2001 06:00:00 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5398137B402 for ; Wed, 10 Jan 2001 05:51:34 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0ADpYj60679; Wed, 10 Jan 2001 05:51:34 -0800 (PST) (envelope-from nobody) Message-Id: <200101101351.f0ADpYj60679@freefall.freebsd.org> Date: Wed, 10 Jan 2001 05:51:34 -0800 (PST) From: jean-francois.dockes@musicmaker."com" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/24221: mt_resid not updated by scsi_sa.c Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24221 >Category: kern >Synopsis: mt_resid not updated by scsi_sa.c >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 10 06:00:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Jean-Francois Dockes >Release: 4.2-STABLE >Organization: >Environment: FreeBSD mouton 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Dec 1 21:47:38 CET 2000 dockes@mouton:/usr/obj/hautmedoc/u/src/sys/HAUTMEDOC i386 >Description: mt_resid is not returned by ioctl MTIOCGET. While the value is accessible through ioctl MTIOCERRSTAT, the latter is not portable. This is not a big issues for read() calls, but is ennoying for MTIOCTOP operations like fsr, fsf, etc... >How-To-Repeat: >Fix: Update the mt_resid field,in MTIOCGET using the values from last_ctl_resid or last_io_resid. This supposes that it's remembered somewhere which was updated last. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message