filp_open fail with ENOTDIR in kernel 2.6.16

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux