Networker

Re: [Networker] Networker 7.2.2 on SLES9

2006-11-09 10:00:32
Subject: Re: [Networker] Networker 7.2.2 on SLES9
From: Dag Nygren <dag AT NEWTECH DOT FI>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 9 Nov 2006 16:46:01 +0200
> Dag Nygren wrote:
> 
> >>Hi,
> >>
> >>i know it is not supported - but is anyone running
> >>Networker 7.2.2 on SLES 9 ?
> >>    
> >>
> >
> >Hi,
> >
> >It works except from the fact that you have a 2 min
> >access delay to any EMPTY tape drive. This comes
> >from the fact that the tape driver in Linux 2.6  has
> >changed the interface slightly. You can patch the driver
> >to avoid this if you want to or just live with the fact.
> >  
> >
> Finally I have found someone who knows about this problem that I have 
> seen. I would have guessed that it was longer than 2 minutes, but it's 
> probably the phenomenon about a watched kettle.

It is 2 minutes/drive so ifyou have many drives you will see a longer
delay

> My system is running Gentoo Linux with an up-to-date kernel (I hesitate 
> to call it bleeding edge since 2.6 is after all a production kernel 
> series). Dan can you please give me a pointer on how to patch this to 
> avoid the problem?

If you take a look at the st-driver you will see that if the open() is not
done with the flag O_NONBLOCK the driver will block for ST_BLOCK_SECONDS.

The easiest way to change this is to always add the O_NONBLOCK
flag to the open() call. In other words add a line with:

filp->f_flags |= O_NONBLOCK;

immediately at the start of the st_open() function.

Best
Dag

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the
body of the email. Please write to networker-request AT listserv.temple DOT edu 
if you have any problems
wit this list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>