Re: Inode question

From: Dave Kleikamp
Date: Thu Jul 22 2004 - 10:22:08 EST


On Wed, 2004-07-21 at 17:57, sankarshana rao wrote:
> Guys,
> Thx for the inputs...I got it with path_lookup....
>
> Can I pass the inode pointer back to the user space???

You shouldn't do that.

> I have a scenario in which I have to create multiple
> folders on the harddisk. The number of folders can be
> in hundreds. Instead of parsing the path name
> everytime I need to create a folder (that's what
> sys_mkdir does??? ), I was thinking if I have the
> inode* of the parent folder, I can avoid this parsing
> and directly create a subfolder under the parent
> folder...

Couldn't the program chdir to the parent directory and create the
folders with a relative pathname?
--
David Kleikamp
IBM Linux Technology Center

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/