diff options
author | John Levon <john.levon@sun.com> | 2010-07-26 11:11:38 -0700 |
---|---|---|
committer | John Levon <john.levon@sun.com> | 2010-07-26 11:11:38 -0700 |
commit | 67323fc4f7476c5e8b55a5fe505c6f2dbf00e89a (patch) | |
tree | af030066a90e98c42fe98cadbdc5f8a5b9b81aff /usr/src/cmd/devfsadm | |
parent | da060432c3093844dd0ff46d9651bdf06c12dd66 (diff) | |
download | illumos-joyent-67323fc4f7476c5e8b55a5fe505c6f2dbf00e89a.tar.gz |
6968425 Seeing build_devlink_list: readlink failed messages in console with Osolb143
Diffstat (limited to 'usr/src/cmd/devfsadm')
-rw-r--r-- | usr/src/cmd/devfsadm/devfsadm.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr/src/cmd/devfsadm/devfsadm.c b/usr/src/cmd/devfsadm/devfsadm.c index d37bc70835..2289db2a88 100644 --- a/usr/src/cmd/devfsadm/devfsadm.c +++ b/usr/src/cmd/devfsadm/devfsadm.c @@ -226,12 +226,12 @@ static item_t **nfp_hash; static mutex_t nfp_mutex = DEFAULTMUTEX; /* - * Packaged directories - not removed even when empty. - * The dirs must be listed in canonical form - * i.e. without leading "/dev/" + * Directories not removed even when empty. They are packaged, or may + * be referred to from a non-global zone. The dirs must be listed in + * canonical form i.e. without leading "/dev/" */ -static char *packaged_dirs[] = - {"dsk", "rdsk", "term", NULL}; +static char *sticky_dirs[] = + {"dsk", "rdsk", "term", "lofi", "rlofi", NULL}; /* Devname globals */ static int lookup_door_fd = -1; @@ -3195,17 +3195,17 @@ s_rmdir(char *path) /* * Certain directories are created at install time by packages. - * Some of them (listed in packaged_dirs[]) are required by apps + * Some of them (listed in sticky_dirs[]) are required by apps * and need to be present even when empty. */ - vprint(REMOVE_MID, "%s: checking if %s is packaged\n", fcn, path); + vprint(REMOVE_MID, "%s: checking if %s is sticky\n", fcn, path); rpath = path + strlen(dev_dir) + 1; - for (i = 0; (dir = packaged_dirs[i]) != NULL; i++) { + for (i = 0; (dir = sticky_dirs[i]) != NULL; i++) { if (*rpath == *dir) { if (strcmp(rpath, dir) == 0) { - vprint(REMOVE_MID, "%s: skipping packaged dir: " + vprint(REMOVE_MID, "%s: skipping sticky dir: " "%s\n", fcn, path); errno = EEXIST; return (-1); |