Project

General

Profile

Actions

Bug #19897

closed

FUSE should return a different error when attempting to create a file in a project

Added by Peter Amstutz about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
0.5
Release relationship:
Auto

Description

You cannot create a bare file in a Project in the FUSE mount (only in Collections). If you try, you will get I/O error. This is disorienting because I/O error usually means something very bad happened. This should be something else like:

EPERM "Operation not permitted"
ENOSYS "Function not implemented"

Internally it is actually throwing NoImplementedError so catching that exception generally and turning it into ENOSYS would make sense. However the particular function that tries to create a file in a project could throw EPERM since it is more precise semantics.

From discussion: let's go with ENOTSUP "Operation not supported (POSIX.1-2001)."


Subtasks 1 (0 open1 closed)

Task #19950: Review 19897-fuse-enotsupResolvedPeter Amstutz01/30/2023Actions
Actions

Also available in: Atom PDF