diff options
author | eschrock <none@none> | 2007-01-08 11:15:07 -0800 |
---|---|---|
committer | eschrock <none@none> | 2007-01-08 11:15:07 -0800 |
commit | 39c23413b8df94a95f67b34cfd4a4dfc3fd0b48d (patch) | |
tree | eea889e04fa3d21b9bc5fe702a3eef1fc0148ebc /usr/src/lib/libdiskmgt/common | |
parent | 3dba6097f91d71408b4a7c824521f8f0687ab6ff (diff) | |
download | illumos-joyent-39c23413b8df94a95f67b34cfd4a4dfc3fd0b48d.tar.gz |
6393525 vdev_reopen() should verify that it's still the same device
6414648 zfs allows overlapping devices to be added
6435943 assertion failed: spare != 0L, file: ../../common/fs/zfs/spa_misc.c
6436000 import of actively spared device returns EBUSY
6478316 nfs/server doesn't respect auto_enable setting
6483675 want a private property to return number of clones
6485728 zpool iostat should flush output periodically
6494072 A device which was set as spare disk is not detach
6497563 zfs double-spared an already-spared disk on reboot
6503724 adding spare that is in use in another pool should be allowed
6505225 zpool(1M) can give misleading error when removing active spare
Diffstat (limited to 'usr/src/lib/libdiskmgt/common')
-rw-r--r-- | usr/src/lib/libdiskmgt/common/inuse_fs.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/usr/src/lib/libdiskmgt/common/inuse_fs.c b/usr/src/lib/libdiskmgt/common/inuse_fs.c index 1dafdc05e5..e3f25b2156 100644 --- a/usr/src/lib/libdiskmgt/common/inuse_fs.c +++ b/usr/src/lib/libdiskmgt/common/inuse_fs.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -207,6 +206,16 @@ load_heuristics() continue; } + /* + * Skip checking for ZFS filesystems. We know that + * inuse_zpool() will have already been called, which does a + * better job of checking anyway. More importantly, an unused + * hot spare will still claim to have a ZFS filesystem because + * it doesn't do the same level of checks. + */ + if (strcmp(dp->d_name, "zfs") == 0) + continue; + (void) snprintf(path, sizeof (path), "/usr/lib/fs/%s", dp->d_name); |