Project

General

Profile

Feature #2882

implement libzfs_core

Added by Matthew Ahrens over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2012-06-14
Due date:
% Done:

80%

Estimated time:
Difficulty:
Hard
Tags:

Description

We should implement libzfs_core, under the principles proposed here:
http://blog.delphix.com/matt/2012/01/17/the-future-of-libzfs/

This feature request will cover the first phase of this project, specifically the following tasks:

  • create libzfs_core library with functions for snapshot, create, clone, destroy snapshots, send & receive (simple cases), send space estimation
  • revamp the way zfs ioctls are handled: ioctl-specific arguments are passed in nvlist, not random zfs_cmd_t fields
  • new-style ioctls are logged to the zpool history
  • new method of history logging (separate ioctl)
  • "zfs snapshot" can create multiple arbitrary snapshots at once
  • revamp the way internal history events are handled (stored on disk as names rather than event ID)

History

#1

Updated by Eric Schrock about 7 years ago

  • Status changed from In Progress to Resolved

changeset: 13743:95aba6e49b9f
tag: tip
user: Matthew Ahrens <>
date: Sat Jun 30 13:00:47 2012 -0700

description:
2882 implement libzfs_core
2883 changing "canmount" property to "on" should not always remount dataset
2900 "zfs snapshot" should be able to create multiple, arbitrary snapshots at once
Reviewed by: George Wilson <>
Reviewed by: Chris Siden <>
Reviewed by: Garrett D'Amore <>
Reviewed by: Bill Pijewski <>
Reviewed by: Dan Kruchinin <>
Approved by: Eric Schrock <>

Also available in: Atom PDF