Deleted Added
full compact
dmu_objset.c (339109) dmu_objset.c (339129)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 40 unchanged lines hidden (view full) ---

49#include <sys/zil.h>
50#include <sys/dmu_impl.h>
51#include <sys/zfs_ioctl.h>
52#include <sys/sa.h>
53#include <sys/zfs_onexit.h>
54#include <sys/dsl_destroy.h>
55#include <sys/vdev.h>
56#include <sys/zfeature.h>
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 40 unchanged lines hidden (view full) ---

49#include <sys/zil.h>
50#include <sys/dmu_impl.h>
51#include <sys/zfs_ioctl.h>
52#include <sys/sa.h>
53#include <sys/zfs_onexit.h>
54#include <sys/dsl_destroy.h>
55#include <sys/vdev.h>
56#include <sys/zfeature.h>
57#include "zfs_namecheck.h"
57
58/*
59 * Needed to close a window in dnode_move() that allows the objset to be freed
60 * before it can be safely accessed.
61 */
62krwlock_t os_lock;
63
64/*

--- 843 unchanged lines hidden (view full) ---

908 int error;
909
910 if (strchr(doca->doca_name, '@') != NULL)
911 return (SET_ERROR(EINVAL));
912
913 if (strlen(doca->doca_name) >= ZFS_MAX_DATASET_NAME_LEN)
914 return (SET_ERROR(ENAMETOOLONG));
915
58
59/*
60 * Needed to close a window in dnode_move() that allows the objset to be freed
61 * before it can be safely accessed.
62 */
63krwlock_t os_lock;
64
65/*

--- 843 unchanged lines hidden (view full) ---

909 int error;
910
911 if (strchr(doca->doca_name, '@') != NULL)
912 return (SET_ERROR(EINVAL));
913
914 if (strlen(doca->doca_name) >= ZFS_MAX_DATASET_NAME_LEN)
915 return (SET_ERROR(ENAMETOOLONG));
916
917 if (dataset_nestcheck(doca->doca_name) != 0)
918 return (SET_ERROR(ENAMETOOLONG));
919
916 error = dsl_dir_hold(dp, doca->doca_name, FTAG, &pdd, &tail);
917 if (error != 0)
918 return (error);
919 if (tail == NULL) {
920 dsl_dir_rele(pdd, FTAG);
921 return (SET_ERROR(EEXIST));
922 }
923 error = dsl_fs_ss_limit_check(pdd, 1, ZFS_PROP_FILESYSTEM_LIMIT, NULL,

--- 1434 unchanged lines hidden ---
920 error = dsl_dir_hold(dp, doca->doca_name, FTAG, &pdd, &tail);
921 if (error != 0)
922 return (error);
923 if (tail == NULL) {
924 dsl_dir_rele(pdd, FTAG);
925 return (SET_ERROR(EEXIST));
926 }
927 error = dsl_fs_ss_limit_check(pdd, 1, ZFS_PROP_FILESYSTEM_LIMIT, NULL,

--- 1434 unchanged lines hidden ---