Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933489AbcKONd0 (ORCPT ); Tue, 15 Nov 2016 08:33:26 -0500 Received: from mail-qt0-f177.google.com ([209.85.216.177]:35048 "EHLO mail-qt0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752221AbcKONdZ (ORCPT ); Tue, 15 Nov 2016 08:33:25 -0500 MIME-Version: 1.0 In-Reply-To: <87d1i2j5af.fsf@thinkpad.rath.org> References: <87lgwrufuk.fsf@thinkpad.rath.org> <87mvh6likl.fsf@vostro.rath.org> <87mvh6j803.fsf@thinkpad.rath.org> <87d1i2j5af.fsf@thinkpad.rath.org> From: Miklos Szeredi Date: Tue, 15 Nov 2016 14:33:22 +0100 Message-ID: Subject: Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT To: Nikolaus Rath Cc: Mike Marshall , Andrew Gallagher , lkml , linux-fsdevel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 892 Lines: 18 On Fri, Nov 11, 2016 at 6:27 PM, Nikolaus Rath wrote: > Yeah, I'd expect most people to do that. But FUSE file systems are often > a little more exotic and produce error conditions that don't match well > with any of the codes documented in the manpages. If there is no good > fit, I'd expect that most people would (as I have done so far) simply > pick something more appropriate from errno(3). If some of these codes > are forbidden (or only a subset allowed) I'd really like to document > this. It's not reasonable to expect every libfuse user to start browsing > the Linux VFS code to determine if they can use a particular error code. The library and the kernel checks for -1000 < error <= 0. There are no other checks done by fuse. However returning ENOSYS for open is simply wrong, it's definitely not something a sane filesystem would ever do. Thanks, Miklos