NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/38413: mt(1) print some junk output when using remote tape



>Number:         38413
>Category:       bin
>Synopsis:       mt(1) print some junk output when using remote tape
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 12 11:30:00 +0000 2008
>Originator:     Takahiro Kambe
>Release:        NetBSD 4.0_STABLE
>Organization:
        
>Environment:
        
        
System: NetBSD ns.back-street.net 4.0_STABLE NetBSD 4.0_STABLE (EPIA) #7: Sat 
Mar 22 17:53:01 JST 2008 
taca%boy.a.back-street.net@localhost:/data/i386/obj4/sys/arch/i386/compile/EPIA 
i386
Architecture: i386
Machine: i386
>Description:
        NetBSD's mt(1) support remote tape which dosen't exist old
        4.3 (or 4.4?) BSD days.

        But when print tape's status, it output some junk output.

>How-To-Repeat:
        % mt -f remote:/dev/nrst0 status
        SCSI tape drive, residual=0
        ds=3<Mounted>
        er=0
        blocksize: 0 (-1077942312, -1145412916, -1145206232, -1077942196)
        density: 64 (-1077942312, -1145412809, -1145087944, 0)
        current file number: 25
        current block number: -1
        When locally execute it:

        % mt stat
        SCSI tape drive, residual=0
        ds=3<Mounted>
        er=0
        blocksize: 0 (0, 0, 0, 0)
        density: 64 (0, 0, 0, 0)
        current file number: 25
        current block number: -1

>Fix:
        Original rmt protocol supports only 24 bytes for room which
        return MTIOCGET ioctl()'s result and remaining fields of
        mtget structure aren't aveilable:  mt_blksiz, mt_density,
        mt_mblksiz and mt_mdensity.

        If mt(1) handles remote tape, it should be clear these field
        or don't display correspoding information.

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index