Project

General

Profile

Actions

Bug #3699

closed

zfs hold or release of a non-existent snapshot does not output error

Added by Martin Matuška about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2013-04-07
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

If placing a hold or releasing a hold of a non-existent snapshot of a existent dataset, there is no error output and a zero return code.

Steps to reproduce:

zfs create tank/test
zfs hold tank/test@s1
zfs release tank/test@s1

Prior to changeset 13973:4972ab336f54 (3464 zfs synctask code needs restructuring) the following error was returned:

cannot hold 'tank/test@s1': dataset does not exist

This case should be treated as an error. As to my investigation non-existing snapshots of existing datasets are skipped already in libzfs (there is no ioctl call).


Files

libzfs_dataset.c.patch (1.86 KB) libzfs_dataset.c.patch Martin Matuška, 2013-04-10 11:35 AM
3699.patch (2.35 KB) 3699.patch Martin Matuška, 2013-04-25 06:43 AM
Actions

Also available in: Atom PDF