Re: Reg mkdir syscall

H. Peter Anvin (hpa@zytor.com)
4 Jun 2001 22:02:23 -0700


Followup to: <Pine.LNX.4.10.10106042157410.10477-100000@blrmail>
By author: "SATHISH.J" <sathish.j@tatainfotech.com>
In newsgroup: linux.dev.kernel
>
> Actually I had written a small file system(on 2.2.14 kernel) similar to
> RAMFS on 2.4 kernel. I am able to mount it but when I try to create
> directory under it, it gives EEXIST error saying" file already exists" but
> when I check the directory again that file gets created. But the link
> count of the parent remains the same. I do not know how this directory
> gets created but with an error message. Please also tell me what all
> functions mkdir passes thro' while creating a directory. One more thing is
> when I took an strace of mkdir command the syscall mkdir fails with
> EEXIST error.
> Please help me with your thoughts.
>

Your code is broken.

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/