Re: Chasing Down Data Corruption

Forum: LinuxTotal Replies: 2
Author Content
tqk

Dec 31, 2006
2:58 PM EDT
Linus recently had a problem:

http://kerneltrap.org/node/7517

I took it as a call to arms. Linus just wants me to look at something? Okay. It's the least I can offer someone who's done so much for me. I went so far as DLing (cut+paste) the test code he mentions.

I can't get it to compile:

(0) heretic /home/keeling/devl/kr/src_ gcc -o linus linus.c -Wall linus.c: In function `remap': linus.c:70: warning: implicit declaration of function `posix_fadvise' linus.c:70: error: `POSIX_FADV_DONTNEED' undeclared (first use in this function) linus.c:70: error: (Each undeclared identifier is reported only once linus.c:70: error: for each function it appears in.)

What brain dead simple step have I missed?
dcparris

Dec 31, 2006
3:41 PM EDT
It looks to me like you left out this: ./watchyacallit.

Sorry. I just couldn't resist. I am _not_ a kernel hacker, but if I were, it would be really hacked! ;-)
jezuch

Dec 31, 2006
4:19 PM EDT
I think it should be ./dwim

You cannot post until you login.