summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Jelinek <jerry.jelinek@joyent.com>2016-03-15 19:31:26 +0000
committerJerry Jelinek <jerry.jelinek@joyent.com>2016-03-15 19:31:26 +0000
commit43b9f24b3c50ff8e7d40e53988722f7ee5b6111e (patch)
tree956198bee84e1c29af8556349d40c15bd4712ac6
parente55a435be566e7a9ef8828694afa9473cb72604e (diff)
downloadillumos-joyent-43b9f24b3c50ff8e7d40e53988722f7ee5b6111e.tar.gz
OS-5245 disable sysfs cpu hierarchy, breaks java
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
-rw-r--r--usr/src/uts/common/brand/lx/sysfs/lx_sysvnops.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/src/uts/common/brand/lx/sysfs/lx_sysvnops.c b/usr/src/uts/common/brand/lx/sysfs/lx_sysvnops.c
index 861818c068..c4434d57b3 100644
--- a/usr/src/uts/common/brand/lx/sysfs/lx_sysvnops.c
+++ b/usr/src/uts/common/brand/lx/sysfs/lx_sysvnops.c
@@ -212,8 +212,15 @@ static lxsys_dirent_t dirlist_devices_virtual[] = {
{ LXSYS_INST_DEVICES_VIRTUAL_NETDIR, "net" }
};
+/*
+ * XXX: The presence of the cpu tree in sysfs triggers new behavior in various
+ * applications. The glibc code which accesses this part of the tree expects
+ * dirents to have the d_type field populated. We cannot implement the 'cpu'
+ * hierarchy until that is addressed. One such application is java, which
+ * becomes unstable due to the incorrect data from glibc.
+ */
static lxsys_dirent_t dirlist_devices_system[] = {
- { LXSYS_INST_DEVICES_SYSCPU, "cpu" },
+ /* { LXSYS_INST_DEVICES_SYSCPU, "cpu" }, */
{ LXSYS_INST_DEVICES_SYSNODE, "node" }
};