Skip to contentSkip to conversation

rmap 15j for 2.4.21-rc6

PATCH Andreas Hartmann 2 participants 2 messages Jun 2, 2003 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · Michael Frank
Quoted 3 lines · Andreas Hartmann

Well, I did the test with 2.4.21rc6 after patching your script (I got syntax errors):

About your script changes, I like to make it portable, and I use the following versions:

GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)

2.02.1(1)-release

Quoted 2 lines

dd (coreutils) 4.5.3

dd (fileutils) 4.1

Quoted 1 line

What shell and coreutils are you using?

They are obviously much older :-).

Quoted 11 lines

Avoiding short counts is easy but avoiding C-style expressions is primitive

(quoted diff) +2 -2
-     count=100K
+     count=100000
 
-   while (( i-- )); do
+   while (( i=`expr $i - 1` )); do

In your opinion are your changes more portable across a wide range of systems?

I didn't think at portability :-). I only made it working for me. Maybe there are other persons out there who do have some old versions too - so they can use this patch.

Quoted 8 lines
Quoted 7 lines

When I'm using the script as seen in the patch, I'm getting problems with df (it's mostly very lazy, about 20s delay or more), the load is 4, doing an ls on some other directories is extremly slow. Mouse and keyboard are hanging some times.
The write speed shown in xosview was between 1 and 15MB/s. Often the HD LED was on, but no data seemed to be put to the HD.

Quoted 5 lines

It has a hard time to read anything else, the slower the disk, the worse.

Suppose rmap undoes the fixes introduced in -rc6.

Have you tried -rc6 plain?

Yes - I only tested this kernel.

Regards,
Andreas Hartmann

#3 lore raw

Hi !

Quoted 1 line · Andreas Hartmann

Michael Frank wrote:

<...>

Quoted 3 lines
Quoted 1 line

GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)

2.02.1(1)-release

<...>

Quoted 9 lines
Quoted 5 lines
(quoted diff) +1 -1
-   while (( i-- )); do
+   while (( i=`expr $i - 1` )); do

In your opinion are your changes more portable across a wide range of systems?

I didn't think at portability :-). I only made it working for me. Maybe there are other persons out there who do have some old versions too - so they can use this patch.

Well, I found that i--/i++ don't work with bash-2.03 (present about everywhere) but i=i-1 or i=i+1 work well. So at least, for portability, this could be rewritten as "while (( i=i-1 )); do".

Cheers,
Willy