[asterisk-bugs] [Asterisk 0002073]: /proc/zaptel/xxx doesn't work properly under Linux 2.6

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 10:43:51 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=2073 
====================================================================== 
Reported By:                steveu
Assigned To:                markster
====================================================================== 
Project:                    Asterisk
Issue ID:                   2073
Category:                   Core/General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     closed
Asterisk Version:           I did not set the version :( 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             07-17-2004 14:50 CDT
Last Modified:              06-07-2008 10:43 CDT
====================================================================== 
Summary:                    /proc/zaptel/xxx doesn't work properly under Linux
2.6
Description: 
The code to generate the /proc/zaptel/xxx pages assumes it can write a
whole page in one go. This works with Linux 2.4. However, Linux 2.6 can
only accept 1024 bytes per write from a kernel module. The page an E1 with
all the channels configured and some errors showing exceeds 1024 bytes, and
the end gets chopped of.

The off and count parameters to zaptel_proc_read need to be used to get
this right. However, getting things right with changing data would be a a
pain. Ensuring pages never exceed 1024 bytes might be easier in the short
term. Changing ClearChannel to CC did it for me as a temp. measure.
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 10:43  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 438

U   trunk/zaptel.c

------------------------------------------------------------------------
r438 | markster | 2008-06-07 10:43:49 -0500 (Sat, 07 Jun 2008) | 2 lines

Make things fit in < 1024 (bug http://bugs.digium.com/view.php?id=2073)

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=438 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 10:43  svnbot         Checkin                                      
06-07-08 10:43  svnbot         Note Added: 0087948                          
======================================================================




More information about the asterisk-bugs mailing list