Project

General

Profile

Bug #5789

lzc_snapshot() produces inconsistent errlist for different errors

Added by Andriy Gapon over 5 years ago. Updated about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2015-04-03
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

It seems that errlist is inconsistently populated by lzc_snapshot() depending on what problems are encountered.
On the one hand, if I try to create a set of snapshots and some of them already exist, then lzc_snapshot fails and errlist would be correctly populated with the already exisiting snapshots and EEXIST error code.
On the other hand, if I try to create a set of snapshots and some of them (but not all!) refer to filesystems that do not exist, then lzc_snapshot fails with ENOENT but the errlist is not populated. Thus it is impossible to correctly diagnose the failure.


Related issues

Related to illumos gate - Bug #7071: lzc_snapshot does not fill in errlist on ENOENTClosed2016-06-06

Actions

History

#1

Updated by Andriy Gapon over 5 years ago

A more elaborate example. lzc_snapshot() is called to create 3 snapshots: one already exists, one is for a nonexistent filesystem and one could have been successful.
In this case the overall error code is EEXIST and errlist has a single entry for the duplicate snapshot.
The attempt to create the snapshot for nonexistent filesystem is not reported.

#2

Updated by Andriy Gapon over 5 years ago

Apparently zfs_secpolicy_snapshot() is responsible for this behavior.

#3

Updated by Andriy Gapon about 4 years ago

  • Related to Bug #7071: lzc_snapshot does not fill in errlist on ENOENT added
#4

Updated by Andriy Gapon about 4 years ago

This bug should be closed now.

Also available in: Atom PDF