Project

General

Profile

Bug #7973

ZFS_IOC_CREATE should be atomic

Added by Jakub Klama almost 3 years ago. Updated almost 3 years ago.

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

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Right now dataset creation is not atomic - properties are set in different txg than the creation itself. It should be made atomic, as it's a single ioctl request.

2017-03-15.03:59:12 [txg:52] create tank/test2 (59)  [on freenas.local]
2017-03-15.03:59:12 [txg:53] set tank/test2 (59) org.freenas:permissions_type=ACL [on freenas.local]
2017-03-15.03:59:12 [txg:53] set tank/test2 (59) org.freenas:hidden=no [on freenas.local]
2017-03-15.03:59:12 [txg:53] set tank/test2 (59) aclmode=6 [on freenas.local]
2017-03-15.03:59:12 [txg:53] set tank/test2 (59) org.freenas:uuid=e836fbdc-a4fb-41ad-b7ed-0c126dcf51ba [on freenas.local]
2017-03-15.03:59:12 ioctl create
    input:
        type: 2
        props:
            org.freenas:permissions_type: 'ACL'
            org.freenas:hidden: 'no'
            aclmode: 6
            org.freenas:uuid: 'e836fbdc-a4fb-41ad-b7ed-0c126dcf51ba'
 [user 0 (root) on freenas.local]

(the above snippet comes from FreeBSD, but it should not matter, as it's a generic ZFS thing, not specific to illumos)

History

#1

Updated by Jakub Klama almost 3 years ago

hey, any news on that one?

#2

Updated by Marcel Telka almost 3 years ago

Jakub Klama wrote:

hey, any news on that one?

We are still waiting for a patch from you :-).

Also available in: Atom PDF