Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2001 05:51:34 -0800 (PST)
From:      jean-francois.dockes@musicmaker."com"
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/24221: mt_resid not updated by scsi_sa.c
Message-ID:  <200101101351.f0ADpYj60679@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101101351.f0ADpYj60679>