Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1519892
| From | Nikolaus Rath <Nikolaus@rath.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT |
| Date | 2016-11-11 17:30 +0100 |
| Message-ID | <sCmSd-6F5-5@gated-at.bofh.it> (permalink) |
| References | <sC6aJ-494-25@gated-at.bofh.it> <sC6Ns-4Ca-11@gated-at.bofh.it> <sCc6t-82o-15@gated-at.bofh.it> <sCfH3-1Zq-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Nov 11 2016, Miklos Szeredi <mszeredi@redhat.com> wrote:
> On Fri, Nov 11, 2016 at 5:57 AM, Nikolaus Rath <Nikolaus@rath.org> wrote:
>> On Nov 11 2016, Miklos Szeredi <mszeredi@redhat.com> wrote:
>>> On Thu, Nov 10, 2016 at 11:31 PM, Nikolaus Rath <Nikolaus@rath.org> wrote:
>>>> Hi Andrew,
>>>>
>>>> In commit d7afaec0b564f0609e116f5 you added a new FUSE_NO_OPEN_SUPPORT
>>>> flag. But as far as I can tell, the flag is simply accepted without
>>>> having any effect (including in libfuse).
>>>>
>>>> I tried to find related later commits, but did not find anything either.
>>>>
>>>> Am I missing something?
>>>
>>> Hmm, if fuse fs detects this flag, then it can return ENOSYS from open
>>> resulting in this and subsequent opens succeeding without further
>>> calls to userspace. If fuse fs doesn't detect this flag, it should
>>> not return -ENOSYS, as that will result in the open failing, it should
>>> instead implement a no-op open method.
>>
>> That doesn't sound like a good approach to me. That way, the file system
>> has to *know* that this flag has been introduced in order to behave
>> correctly, i.e. filesystems that predate the introduction of the flag
>> will suddenly behave differently.
>>
>> I think the correct behavior would be to for the kernel to check if
>> userspace passed the flag, and treat ENOSYS specially if and only if the
>> flag was passed.
>
> ENOSYS is not a valid return value for any existing syscall. Fuse
> uses that fact to attach this special meaning to ENOSYS. So
> compatibility is not an issue here, old filesystems should never
> return ENOSYS from open.
Oh, I was under the impression that any FUSE handler is free to return
any error it wants. Where does one have to look to determine which
return values are valid?
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Nikolaus Rath <Nikolaus@rath.org> - 2016-11-10 23:40 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Miklos Szeredi <mszeredi@redhat.com> - 2016-11-11 00:20 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Nikolaus Rath <Nikolaus@rath.org> - 2016-11-11 06:00 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Miklos Szeredi <mszeredi@redhat.com> - 2016-11-11 09:50 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Nikolaus Rath <Nikolaus@rath.org> - 2016-11-11 17:30 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Mike Marshall <hubcap@omnibond.com> - 2016-11-11 18:00 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Nikolaus Rath <Nikolaus@rath.org> - 2016-11-11 18:30 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Mike Marshall <hubcap@omnibond.com> - 2016-11-11 19:00 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Nikolaus Rath <Nikolaus@rath.org> - 2016-11-15 17:00 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Miklos Szeredi <mszeredi@redhat.com> - 2016-11-15 14:40 +0100
Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT Nikolaus Rath <Nikolaus@rath.org> - 2016-11-15 17:00 +0100
csiph-web