> > > No, but what value does an extra function call add then when you already
> > > have lookup intents?
> >
> > Just to provide a proper interface, and not have to extend open
> > intents further.
>
> Why do you consider an extra function call to be a more "proper
> interface"?
>
> Does it fix more races? Does it allow you to do new things more
> elegantly? Does it offer a better abstraction?
Extending the open intent with 'struct file *' in itself is pretty
lame. How do you initilaize intent.open.file from within ->lookup and
->create? Do you call dentry_open(), that doesn't cut it with the
reorganized filp_open() thing. And anyway it would be rather ugly
that it would recurse into the filesystems ->open() method.
See the problems I have with the intent.open.file thing?
> Just trying to understand why you are trying to dump an interface that
> has been agreed upon for several years and replace it with one that was
> rejected.
>
> > Earlier you said, that intents are meant to be optional, so this
> > atomicity requirement is getting further from the "intent" concept.
>
> No it is not. It is bang right in the middle of the intent concept.
>
> Intents are there in order to allow the filesystem to determine which
> operation is calling lookup so that it can optimise for that particular
> operation.
> If your filesystem is able to do lookup+create+open more efficiently
> than the VFS can, then that is what it is designed to allow you to do.
Yes, the problem is trying to fit too many things into this intent
thing.
But if you post a patch, that implements an equivalent (or wider)
interface to the open_create() method, only with intents, and it
doesn't get too convoluted, it's OK by me.
I tried to do that, but the ->open_create() interface just seemed
cleaner.
Miklos
-
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]