Re: vfs_bio.c revision 259200 breaks writing to tape drive on current

2013-12-23 Thread Konstantin Belousov
On Mon, Dec 23, 2013 at 05:35:23AM -0800, Manfred Antar wrote:
> At 11:31 PM 12/22/2013, you wrote:
> >On Sun, Dec 22, 2013 at 09:54:49AM -0800, Manfred Antar wrote:
> >> The change to vfs_bio.c in revision 259200 breaks writing to scsi tape 
> >> drive on i386 and sparc64 on current.
> >> I don't have any other machines to test on.
> >> here is example:
> >> 
> >> r259199:
> >> (/)4794}mt rew
> >> (/)4795}tar cvf /dev/sa0 kernel
> >> a kernel
> >> 
> >> r259200:
> >> (/)4781}mt rew
> >> (/)4782}tar cvf /dev/sa0 kernel
> >> a kerneltar: Write error
> >> 
> >> the changes between the two revisions:
> >> line 3682 removed:
> >> 
> >> bp->b_resid = bip->bio_resid;   /* XXX: remove */
> >> 
> >> I noticed this when trying to do a dump and getting end of tape error.
> >> tried different tape drives , different cables no change.
> >> backed out r259200 to 259199 and everything works as before.
> >> Manfred
> >
> >Show me the kdump of the tar commands on both revisions.
> >
> 
> It will take me a few hours, back to work today.
> Same thing happens with dump too.
> The Tape drives are  SCSI Quantum DLT  used on both machines i386 and sparc64 
> (Sun Netra)
> using version 258174 of vfs_bio.c  on current kernels, I was able to do a 
> full dump of both machines without a problem.
> The error is when trying to read or write to the tape drive.
> What is the exact command for kdump that you want ?
> I can do it when I get home this afternoon.
> Thanks
> Manfred
> 

ktrace -i tar ...
kdump -s >some.file
I need some.file.


pgpOf9kvjmroF.pgp
Description: PGP signature


Re: vfs_bio.c revision 259200 breaks writing to tape drive on current

2013-12-23 Thread Manfred Antar
At 11:31 PM 12/22/2013, you wrote:
>On Sun, Dec 22, 2013 at 09:54:49AM -0800, Manfred Antar wrote:
>> The change to vfs_bio.c in revision 259200 breaks writing to scsi tape drive 
>> on i386 and sparc64 on current.
>> I don't have any other machines to test on.
>> here is example:
>> 
>> r259199:
>> (/)4794}mt rew
>> (/)4795}tar cvf /dev/sa0 kernel
>> a kernel
>> 
>> r259200:
>> (/)4781}mt rew
>> (/)4782}tar cvf /dev/sa0 kernel
>> a kerneltar: Write error
>> 
>> the changes between the two revisions:
>> line 3682 removed:
>> 
>> bp->b_resid = bip->bio_resid;   /* XXX: remove */
>> 
>> I noticed this when trying to do a dump and getting end of tape error.
>> tried different tape drives , different cables no change.
>> backed out r259200 to 259199 and everything works as before.
>> Manfred
>
>Show me the kdump of the tar commands on both revisions.
>

It will take me a few hours, back to work today.
Same thing happens with dump too.
The Tape drives are  SCSI Quantum DLT  used on both machines i386 and sparc64 
(Sun Netra)
using version 258174 of vfs_bio.c  on current kernels, I was able to do a full 
dump of both machines without a problem.
The error is when trying to read or write to the tape drive.
What is the exact command for kdump that you want ?
I can do it when I get home this afternoon.
Thanks
Manfred


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: vfs_bio.c revision 259200 breaks writing to tape drive on current

2013-12-23 Thread Julian Elischer

On 12/23/13, 8:31 AM, Konstantin Belousov wrote:

On Sun, Dec 22, 2013 at 09:54:49AM -0800, Manfred Antar wrote:

The change to vfs_bio.c in revision 259200 breaks writing to scsi tape drive on 
i386 and sparc64 on current.
I don't have any other machines to test on.
here is example:

r259199:
(/)4794}mt rew
(/)4795}tar cvf /dev/sa0 kernel
a kernel

r259200:
(/)4781}mt rew
(/)4782}tar cvf /dev/sa0 kernel
a kerneltar: Write error

the changes between the two revisions:
line 3682 removed:

bp->b_resid = bip->bio_resid;   /* XXX: remove */

I noticed this when trying to do a dump and getting end of tape error.
tried different tape drives , different cables no change.
backed out r259200 to 259199 and everything works as before.
Manfred

Show me the kdump of the tar commands on both revisions.
I had to do all sorts of special handling back in the 1.x days to get 
tape drives to work correctly. length and resid ahndlign were 
susceptible to failure in hte various different schemes of how tape 
drive s shoud work (variable lenght records, fixed length and ather 
variations I forget) .

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: vfs_bio.c revision 259200 breaks writing to tape drive on current

2013-12-22 Thread Konstantin Belousov
On Sun, Dec 22, 2013 at 09:54:49AM -0800, Manfred Antar wrote:
> The change to vfs_bio.c in revision 259200 breaks writing to scsi tape drive 
> on i386 and sparc64 on current.
> I don't have any other machines to test on.
> here is example:
> 
> r259199:
> (/)4794}mt rew
> (/)4795}tar cvf /dev/sa0 kernel
> a kernel
> 
> r259200:
> (/)4781}mt rew
> (/)4782}tar cvf /dev/sa0 kernel
> a kerneltar: Write error
> 
> the changes between the two revisions:
> line 3682 removed:
> 
> bp->b_resid = bip->bio_resid;   /* XXX: remove */
> 
> I noticed this when trying to do a dump and getting end of tape error.
> tried different tape drives , different cables no change.
> backed out r259200 to 259199 and everything works as before.
> Manfred

Show me the kdump of the tar commands on both revisions.


pgpwAjgIAoPZD.pgp
Description: PGP signature