Re: file as a directory
From: Jan Engelhardt (jengelh_at_linux01.gwdg.de)
Date: 11/23/04
- Previous message: Jan Engelhardt: "Re: fork: add a hook in do_fork()"
- In reply to: Amit Gud: "Re: file as a directory"
- Next in thread: Amit Gud: "Re: file as a directory"
- Reply: Amit Gud: "Re: file as a directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Nov 2004 15:00:37 +0100 (MET) To: Amit Gud <amitgud1@gmail.com>
>Correct me if I'm wrong, but the best way I know whether a file should
>be treated as directory or as a file (atleast how I've implemented it)
>depends upon the context (how the file is accessed) in the user-space
>and this context is reflected in the kernel space in the flags of the
>struct nameidata. So ...
And there I see a problem! The open() call (kernel: sys_open) allows to open
both files and directories in the standard operation.
There is the O_DIRECTORY user-space flag, but which only says "it must be a
directory". So there's something missing to say "must be a file".
Hell will freeze over if a reiser4 "object" can be ANY type, blockdev,
chardev, symlink, <think something up>.
Jan Engelhardt
-- Gesellschaft für Wissenschaftliche Datenverarbeitung Am Fassberg, 37077 Göttingen, www.gwdg.de - 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/
- Previous message: Jan Engelhardt: "Re: fork: add a hook in do_fork()"
- In reply to: Amit Gud: "Re: file as a directory"
- Next in thread: Amit Gud: "Re: file as a directory"
- Reply: Amit Gud: "Re: file as a directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|