Article View: news.software.nntp
Article #51171cnfs and cnfsstat divide by 0
From: Russell Virgilio
Date: Tue, 13 Mar 2001 21:41
Date: Tue, 13 Mar 2001 21:41
34 lines
2187 bytes
2187 bytes
Has anyone seen the error below? The only problem I see is I was using /dev/zero as my if= and i had a divide by zero error in the cnfsstat program. I can trace the line number and it seems there are a couple of lines that $len is used as a dividend, but what happens when $len=0? This should be coded into cnfsstat I would think, does anyone have any suggestions as to how to rewrite cnfsstat so it doesn't crash when $len=0. Has anyone else encountered this problem. Can I use a different value for if=/dev/zero and still create the cycbuff files able to be initialized by inn? Am I diagnosing my problem accurately? Thanks for any and all help, I am most grateful to everyone on this newsgroup.... -Russell > This is the error I receive when I run > cnfsstat -c ONE, which corresponds to a partition created with this > command. > > dd if=/dev/zero of=/var/spool/news/cycbuffs/one bs=1k count=2097150 > > Illegal division by zero at /services/server/news/bin/cnfsstat line 289, > <STOR> chunk 81. > Buffer , size: 0.00 TBytes, position: 0.00 TBytes
Technical Details
Message-ID:
<3AAE941A.8DAA8564@gatech.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!news-reader.ntrnet.net!uunet!ash.uu.net!finch!cc.gatech.edu!GT-News!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <3AAE941A.8DAA8564@gatech.edu> Subject: cnfs and cnfsstat divide by 0 Date: Tue, 13 Mar 2001 16:41:46 -0500 From: Russell Virgilio <russ@gatech.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!news-reader.ntrnet.net!uunet!ash.uu.net!finch!cc.gatech.edu!GT-News!not-for-mail Newsgroups: news.software.nntp Organization: Georgia Institute of Technology, Atlanta GA, USA Lines: 33 NNTP-Posting-Host: unknown@dedalus.ns.gatech.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news-int.gatech.edu 984519513 11473 128.61.2.38 (13 Mar 2001 21:38:33 GMT) X-Complaints-To: usenet@news.gatech.edu NNTP-Posting-Date: 13 Mar 2001 21:38:33 GMT X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2 i686) X-Accept-Language: en