* filp_open fail with ENOTDIR in kernel 2.6.16
@ 2006-11-24 2:46 Zhao Xiaoming
2006-11-24 2:59 ` Zhao Xiaoming
0 siblings, 1 reply; 2+ messages in thread
From: Zhao Xiaoming @ 2006-11-24 2:46 UTC (permalink / raw)
To: linux-kernel
I'm porting some kernel module codes from kernel 2.4 to 2.6. The codes
used to work well under 2.4 kernel. In 2.6 environment, the problem is
filp_open("/root/test.txt",O_RDONLY,0) always return -20 (ENOTDIR).
But the regular file "/root/test.txt" does exist. What's wrong?
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: filp_open fail with ENOTDIR in kernel 2.6.16
2006-11-24 2:46 filp_open fail with ENOTDIR in kernel 2.6.16 Zhao Xiaoming
@ 2006-11-24 2:59 ` Zhao Xiaoming
0 siblings, 0 replies; 2+ messages in thread
From: Zhao Xiaoming @ 2006-11-24 2:59 UTC (permalink / raw)
To: linux-kernel
Sorry for the disterbing. Although the problem wasted me half a day, I
just found the key problem and solved it. It's caused by improper
parameter passing during system calls.
Thanks.
On 11/24/06, Zhao Xiaoming <xiaoming.nj@gmail.com> wrote:
> I'm porting some kernel module codes from kernel 2.4 to 2.6. The codes
> used to work well under 2.4 kernel. In 2.6 environment, the problem is
> filp_open("/root/test.txt",O_RDONLY,0) always return -20 (ENOTDIR).
> But the regular file "/root/test.txt" does exist. What's wrong?
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-24 2:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-24 2:46 filp_open fail with ENOTDIR in kernel 2.6.16 Zhao Xiaoming
2006-11-24 2:59 ` Zhao Xiaoming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®