diff options
author | Brian Behlendorf <[email protected]> | 2009-07-02 16:57:09 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-07-02 16:57:09 -0700 |
commit | 44703f00295c747dffeecd027d147e448644b110 (patch) | |
tree | 6f46bb08b517740ea48232cf6c0921ed55df1a00 /module/zcommon/zfs_namecheck.c | |
parent | 3eb4ba3ebd43c7d06ddcf2846b8d3ce22fe7dfc5 (diff) | |
parent | 9babb37438b58e77bad04e820d5702e15b79e6a6 (diff) |
Merge commit 'refs/top-bases/gcc-uninit' into gcc-uninit
Conflicts:
lib/libzfs/libzfs_dataset.c
module/zfs/arc.c
module/zfs/spa.c
Diffstat (limited to 'module/zcommon/zfs_namecheck.c')
-rw-r--r-- | module/zcommon/zfs_namecheck.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/module/zcommon/zfs_namecheck.c b/module/zcommon/zfs_namecheck.c index a9d109be2..45730c6fc 100644 --- a/module/zcommon/zfs_namecheck.c +++ b/module/zcommon/zfs_namecheck.c @@ -19,12 +19,10 @@ * CDDL HEADER END */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * Common name validation routines for ZFS. These routines are shared by the * userland code as well as the ioctl() layer to ensure that we don't @@ -345,19 +343,3 @@ pool_namecheck(const char *pool, namecheck_err_t *why, char *what) return (0); } - -/* - * Check if the dataset name is private for internal usage. - * '$' is reserved for internal dataset names. e.g. "$MOS" - * - * Return 1 if the given name is used internally. - * Return 0 if it is not. - */ -int -dataset_name_hidden(const char *name) -{ - if (strchr(name, '$') != NULL) - return (1); - - return (0); -} |