* Brian Behlendorf <behlendorf1@llnl.gov>
* Copyright (c) 2013 by Delphix. All rights reserved.
* Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
+ * Copyright (c) 2018 George Melikov. All Rights Reserved.
*/
/*
* Control Directory Tunables (.zfs)
*/
int zfs_expire_snapshot = ZFSCTL_EXPIRE_SNAPSHOT;
-int zfs_admin_snapshot = 1;
+int zfs_admin_snapshot = 0;
typedef struct {
char *se_name; /* full snapshot name */
#
# Copyright (c) 2013, 2016 by Delphix. All rights reserved.
# Copyright 2016 Nexenta Systems, Inc.
+# Copyright (c) 2018 George Melikov. All Rights Reserved.
#
. $STF_SUITE/include/libtest.shlib
typeset fs=$3
typeset stamp=${perm}.${user}.$(date +'%F-%T-%N')
- typeset basefs=${fs%/*}
+ typeset basefs=${fs%/*}
typeset snap=$fs@snap.$stamp
typeset clone=$basefs/cfs.$stamp
typeset fs=$3
typeset stamp=${perm}.${user}.$(date +'%F-%T-%N')
- typeset basefs=${fs%/*}
+ typeset basefs=${fs%/*}
typeset snap=$fs@snap.$stamp
typeset renamefs=$basefs/nfs.$stamp
typeset fs=$3
typeset stamp=${perm}.${user}.$(date +'%F-%T-%N')
- typeset basefs=${fs%/*}
+ typeset basefs=${fs%/*}
typeset snap=$fs@snap.$stamp
typeset clone=$basefs/cfs.$stamp
typeset vol=$3
typeset stamp=${perm}.${user}.$(date +'%F-%T-%N')
- typeset basevol=${vol%/*}
+ typeset basevol=${vol%/*}
typeset snap=$vol@snap.$stamp
user_run $user zfs snapshot $snap
typeset vol=$3
typeset stamp=${perm}.${user}.$(date+'%F-%T-%N')
- typeset basevol=${vol%/*}
+ typeset basevol=${vol%/*}
typeset snap=$vol@snap.$stamp
typeset oldval
typeset vol=$3
typeset stamp=${perm}.${user}.$(date+'%F-%T-%N')
- typeset basevol=${vol%/*}
+ typeset basevol=${vol%/*}
typeset snap=$vol@snap.$stamp
typeset clone=$basevol/cvol.$stamp
typeset vol=$3
typeset stamp=${perm}.${user}.$(date+'%F-%T-%N')
- typeset basevol=${vol%/*}
+ typeset basevol=${vol%/*}
typeset snap=$vol@snap.$stamp
typeset clone=$basevol/cvol.$stamp
typeset renamevol=$basevol/nvol.$stamp
typeset vol=$3
typeset stamp=${perm}.${user}.$(date+'%F-%T-%N')
- typeset basevol=${vol%/*}
+ typeset basevol=${vol%/*}
typeset snap=$vol@snap.$stamp
typeset clone=$basevol/cvol.$stamp