🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by Karl-Olov Serrander Wed, 01 Mar 1995 07:01
Problem with tin when disk full
#15675
Author: Karl-Olov Serrander
Date: Wed, 01 Mar 1995 07:01
8 lines
946 bytes
I have a problem with tin not checking that writing of .newsrc and tinrc
is successfull. If the disk is full i get a truncated .newsrc and/or tinrc.

Any patches ?

-- 
Karl-Olov Serrander kase@celsiustech.se
CelsiusTech AB, J{rf{lla, Sweden
Re: Problem with tin when disk full
#15714
Author: Phil Edwards
Date: Thu, 02 Mar 1995 23:47
30 lines
2287 bytes
Using the secret identity of <D4r264.B3A@celsiustech.se>,
	 it seems Karl-Olov Serrander (kase@celsiustech.se) sez:

:I have a problem with tin not checking that writing of .newsrc and tinrc
:is successfull. If the disk is full i get a truncated .newsrc and/or tinrc.

:Any patches ?


I doubt if there will be many patches available, because of the
following logic:  if tin is having a problem writing files because your
hard disk is full, then the problem isn't with tin:  it's with you, your
system, and your hard disk!  :-)

The byte size of .newsrc and tinrc does not change a great deal during
newsreading; if an extra 600 characters runs you out of diskspace, then
you have bigger problems than reading news.  (Hint:  at 1 MB for half a
US dollar, hard drives are cheap.)

In the meantime, try deleting the lines in .newsrc which contain an
exclamation point:  those are the groups to which you're unsubscribed,
so you don't need those entries anyhow (the list is retreived from the
server, not your .newsrc, so if a group isn't listed, it doesn't
matter).  That should buy you an extra 1200 bytes or so.


--
Phil Edwards                    | The gods do not protect fools.  Fools
pedwards@valhalla.cs.wright.edu | are protected by more capable fools.
--------------------------------|                          -Larry Niven
Re: Problem with tin when disk full
#15719
Author: Urs Janssen
Date: Fri, 03 Mar 1995 00:59
34 lines
2794 bytes
Phil Edwards (pedwards@valhalla.cs.wright.edu) wrote:
> I doubt if there will be many patches available, because of the
> following logic:  if tin is having a problem writing files because your
> hard disk is full, then the problem isn't with tin:  it's with you, your
> system, and your hard disk!  :-)

> The byte size of .newsrc and tinrc does not change a great deal during
> newsreading; if an extra 600 characters runs you out of diskspace, then
> you have bigger problems than reading news.  (Hint:  at 1 MB for half a
> US dollar, hard drives are cheap.)

tell this your system administrator on your university
they'll tell you 8GB are enough for all studentes etc.pp.

> In the meantime, try deleting the lines in .newsrc which contain an
> exclamation point:  those are the groups to which you're unsubscribed,
> so you don't need those entries anyhow (the list is retreived from the
> server, not your .newsrc, so if a group isn't listed, it doesn't
> matter).  That should buy you an extra 1200 bytes or so.

on an system were >= 2000 students are having a account your 600 bytes are
occupied faster than you can emagine - the problem is that when you start
tin an the is a free disk spasce of ~10mb that it can change that fast with
so many users that you need a workaround for tin not destroying your .newsrc

[simple work arround make a backup of your .newsrc evertime befor you start
tin, if that will not work because lack of disk space - don't read news]
[or don't use tin]

--
  o.-.o  |     Urs Janssen     | ( )_( ) | teddy@rz.uni-karlsruhe.de |  o.-.o
  ((`))  | Schuetzenstrasse 39 |  \. ./  |                           |  ((`))
 *) v (* |   76137 Karlsruhe   | __=.=__ |                           | *) v (*
  O-^-O  |       Germany       |    "    |         Teddy@irc         |  O-^-O
Re: Problem with tin when disk full
#15721
Author: billy
Date: Fri, 03 Mar 1995 05:38
19 lines
1795 bytes
Phil Edwards <pedwards@valhalla.cs.wright.edu> writes:

> I doubt if there will be many patches available, because of the
> following logic:  if tin is having a problem writing files because your
> hard disk is full, then the problem isn't with tin:  it's with you, your
> system, and your hard disk!  :-)

Sorry, but this is just plain wrong.  Any self-respecting piece of software
that writes files to a disk, which disk is in use by other applications and
other users the same time, should be able to issue an appropriate error
message and abort/exit/deal-with-it in some non-destructive way.

If someone can point me in the direction of any pd software that has this
sort of thing in it and compiles with gcc2, I'd immediately zip that into
tin.  I've lost count of how many times my newsrc has been hosed while
reading news on a public access system, always due to a lack of disk
space.  And, it's only about 1kb big..

Billy Y..
Re: Problem with tin when disk full
#15725
Author: Paul S. Haring
Date: Fri, 03 Mar 1995 14:13
14 lines
1726 bytes
In article <3j6a0a$39n@news.primenet.com> billy@mix.com writes:

>Sorry, but this is just plain wrong.  Any self-respecting piece of software
>that writes files to a disk, which disk is in use by other applications and
>other users the same time, should be able to issue an appropriate error
>message and abort/exit/deal-with-it in some non-destructive way.

>I've lost count of how many times my newsrc has been hosed while
>reading news on a public access system, always due to a lack of disk
>space.  And, it's only about 1kb big..

You are right sir!  I deal with this problem by copying my .newsrc to 
save.newsrc before running, just in case it (and old.newsrc) get trashed.  
It has saved me countless times. 
Re: Problem with tin when disk full
#15747
Author: billy
Date: Sat, 04 Mar 1995 10:00
14 lines
1465 bytes
Paul S. Haring <paul_haring@jhuapl.edu> writes:

> >I've lost count of how many times my newsrc has been hosed [...]

> You are right sir!  I deal with this problem by copying my .newsrc to 
> save.newsrc before running, just in case it (and old.newsrc) get trashed.  
> It has saved me countless times. 

I do this too, but then when all 2000 or so users do the same thing,
it doubles the disk storage required in a situation where the lack of
it is already causing problems.  Thus effective error handling in the
application software (tin) is a more efficient way to go.

Billy Y..
Re: Problem with tin when disk full
#15837
Author: Ed Haymore
Date: Wed, 08 Mar 1995 05:14
33 lines
2040 bytes
billy@mix.com wrote:
| Paul S. Haring <paul_haring@jhuapl.edu> writes:
| > >I've lost count of how many times my newsrc has been hosed [...]

| > You are right sir!  I deal with this problem by copying my .newsrc to 
| > save.newsrc before running, just in case it (and old.newsrc) get trashed.  
| > It has saved me countless times. 

| I do this too, but then when all 2000 or so users do the same thing,
| it doubles the disk storage required in a situation where the lack of
| it is already causing problems.  Thus effective error handling in the
| application software (tin) is a more efficient way to go.

If the users keep in their .newsrc only the groups they actually read,
the extra space is negligible.

My solution is to run tin from a script, that after tin exists, runs the
following:

if [ -s $HOME/.newsrc ];then
    cp $HOME/.newsrc $HOME/.savenewsrc
fi

(Of course, the script has to be run under the Bourne shell or one that
accepts its syntax.)  This copies .newsrc only if its size is greater
than zero.

I also copy it by hand to another filename every once in a while, 
just in case.

--
Ed Haymore     |   Duct tape is like the Force.  It has a light side
efh@quake.net  |   and a dark side, and it holds the universe together.
Re: Problem with tin when disk full
#16050
Author: Albert Silverman
Date: Wed, 15 Mar 1995 05:45
23 lines
1865 bytes
In article <3j6a0a$39n@news.primenet.com>,  <billy@mix.com> wrote:
>Phil Edwards <pedwards@valhalla.cs.wright.edu> writes:
>
>> I doubt if there will be many patches available, because of the
>> following logic:  if tin is having a problem writing files because your
>> hard disk is full, then the problem isn't with tin:  it's with you, your
>> system, and your hard disk!  :-)
>
>Sorry, but this is just plain wrong.  Any self-respecting piece of software
>that writes files to a disk, which disk is in use by other applications and
>other users the same time, should be able to issue an appropriate error
>message and abort/exit/deal-with-it in some non-destructive way.
>
>If someone can point me in the direction of any pd software that has this
>sort of thing in it and compiles with gcc2, I'd immediately zip that into
>tin.  I've lost count of how many times my newsrc has been hosed while
>reading news on a public access system, always due to a lack of disk
>space.  And, it's only about 1kb big..
>
>Billy Y..

I switched to using TRN a long time ago and have never once had this 
problem since that time.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads