mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-28 17:39:23 +03:00
Illumos 4368, 4369.
4369 implement zfs bookmarks 4368 zfs send filesystems from readonly pools Reviewed by: Christopher Siden <christopher.siden@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Garrett D'Amore <garrett@damore.org> References: https://www.illumos.org/issues/4369 https://www.illumos.org/issues/4368 https://github.com/illumos/illumos-gate/commit/78f1710 Ported by: Tim Chase <tim@chase2k.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2530
This commit is contained in:
committed by
Brian Behlendorf
parent
b0bc7a84d9
commit
da536844d5
@@ -354,7 +354,7 @@ zfsctl_snapshot_zname(struct inode *ip, const char *name, int len, char *zname)
|
||||
{
|
||||
objset_t *os = ITOZSB(ip)->z_os;
|
||||
|
||||
if (snapshot_namecheck(name, NULL, NULL) != 0)
|
||||
if (zfs_component_namecheck(name, NULL, NULL) != 0)
|
||||
return (SET_ERROR(EILSEQ));
|
||||
|
||||
dmu_objset_name(os, zname);
|
||||
@@ -630,7 +630,7 @@ zfsctl_snapdir_mkdir(struct inode *dip, char *dirname, vattr_t *vap,
|
||||
|
||||
dsname = kmem_alloc(MAXNAMELEN, KM_SLEEP);
|
||||
|
||||
if (snapshot_namecheck(dirname, NULL, NULL) != 0) {
|
||||
if (zfs_component_namecheck(dirname, NULL, NULL) != 0) {
|
||||
error = SET_ERROR(EILSEQ);
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user