From: Robert W. <ro...@us...> - 2003-01-20 20:18:49
|
I was thinking about how to create a test for this bug. Do you think it should be written as a "simple" script (bash), or a "fancy" C program? I tend to lean toward a script, but wanted input from others. I was able to test this out on 2.4.20 and 2.5.58 using `od -c`....seems to only be a 2.4 issue. 2.4.20: # cat /proc/cmdline auto BOOT_IMAGE=linux2420 ro root=302 # dd bs=1 if=/proc/cmdline | od -c 38+0 records in 38+0 records out 0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0000040 \0 \0 \0 \0 \0 \0 0000046 # 2.5.58: # cat /proc/cmdline auto BOOT_IMAGE=linux-2.5 ro root=302 # dd bs=1 if=/proc/cmdline | od -c 38+0 records in 38+0 records out 0000000 a u t o B O O T _ I M A G E = 0000020 l i n u x - 2 . 5 r o r o o 0000040 t = 3 0 2 \n 0000046 celica:~ # - Robbie Robert V. Williamson <ro...@us...> Linux Test Project IBM Linux Technology Center Phone: (512) 838-9295 T/L: 678-9295 Fax: (512) 838-4603 http://ltp.sourceforge.net ==================== "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -Albert Einstein Dan Kegel <da...@ke...> To: "'ltp...@li...'" <ltp...@li...> Sent by: cc: ltp...@li...ur Subject: [LTP] reading /proc files one byte at a time? ceforge.net 01/20/2003 12:19 PM We may need a test that tries to read various /proc entries one character at a time (kernel/fs/proc/proc01.c doesn't check to make sure that yields identical results to longer reads, I think.) See http://marc.theaimsgroup.com/?l=linux-kernel&m=104308493711644&w=2 I wonder which /proc entries should support this... probably only the ones that remain constant during the life of the process. - Dan -- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045 ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en _______________________________________________ Ltp-list mailing list Ltp...@li... https://lists.sourceforge.net/lists/listinfo/ltp-list |