summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorGordon Ross <gwr@nexenta.com>2011-06-03 11:40:03 -0400
committerJohn Sonnenschein <johns@joyent.com>2011-06-13 08:24:23 -0700
commit3e456af6c671e009522c0a909f4497d24dc2828d (patch)
tree6cf6605fc89f0db1d5401bb277d9747c27fe48e0 /usr/src
parenteedf4535f386913a4f386bed27a026267f594890 (diff)
downloadillumos-joyent-3e456af6c671e009522c0a909f4497d24dc2828d.tar.gz
1075 smbsrv missing /dev/* link
1076 smbsrv install and packaging cleanup 1088 smbclient devlink.tab and devfsadm cleanup Reviewed by: Garrett D'Amore <garrett@nexenta.com> Reviewed by: Eric Schrock <eric.schrock@delphix.com> Reviewed by: Dan McDonald <danmcd@nexenta.com> Approved by: Garrett D'Amore <garrett@nexenta.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/devfsadm/misc_link.c6
-rw-r--r--usr/src/cmd/mdb/intel/amd64/smbsrv/Makefile8
-rw-r--r--usr/src/cmd/mdb/intel/ia32/smbsrv/Makefile8
-rw-r--r--usr/src/cmd/mdb/sparc/v9/smbsrv/Makefile8
-rw-r--r--usr/src/cmd/smbsrv/smbd/smbd_main.c2
-rw-r--r--usr/src/lib/smbsrv/libsmb/common/smb_kmod.c3
-rw-r--r--usr/src/pkg/manifests/service-file-system-smb.mf33
-rw-r--r--usr/src/pkg/manifests/system-file-system-smb.mf3
-rw-r--r--usr/src/uts/intel/smbsrv/Makefile6
-rw-r--r--usr/src/uts/sparc/smbsrv/Makefile3
10 files changed, 47 insertions, 33 deletions
diff --git a/usr/src/cmd/devfsadm/misc_link.c b/usr/src/cmd/devfsadm/misc_link.c
index b110c736f2..9465e2c886 100644
--- a/usr/src/cmd/devfsadm/misc_link.c
+++ b/usr/src/cmd/devfsadm/misc_link.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
#include <regex.h>
@@ -176,7 +177,7 @@ static devfsadm_create_t misc_cbt[] = {
TYPE_EXACT | DRV_EXACT, ILEVEL_0, minor_name,
},
{ "pseudo", "ddi_pseudo", "nsmb",
- TYPE_EXACT | DRV_RE, ILEVEL_1, minor_name,
+ TYPE_EXACT | DRV_EXACT, ILEVEL_1, minor_name,
},
{ "pseudo", "ddi_pseudo", "mem_cache",
TYPE_EXACT | DRV_RE, ILEVEL_1, minor_name,
@@ -184,6 +185,9 @@ static devfsadm_create_t misc_cbt[] = {
{ "pseudo", "ddi_pseudo", "fm",
TYPE_EXACT | DRV_RE, ILEVEL_1, minor_name,
},
+ { "pseudo", "ddi_pseudo", "smbsrv",
+ TYPE_EXACT | DRV_EXACT, ILEVEL_1, minor_name,
+ },
{ "pseudo", "ddi_pseudo", "tpm",
TYPE_EXACT | DRV_EXACT, ILEVEL_0, minor_name
},
diff --git a/usr/src/cmd/mdb/intel/amd64/smbsrv/Makefile b/usr/src/cmd/mdb/intel/amd64/smbsrv/Makefile
index 88449863b2..a196b07b25 100644
--- a/usr/src/cmd/mdb/intel/amd64/smbsrv/Makefile
+++ b/usr/src/cmd/mdb/intel/amd64/smbsrv/Makefile
@@ -21,8 +21,8 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
#
-#ident "%Z%%M% %I% %E% SMI"
MODULE = smbsrv.so
MDBTGT = kvm
@@ -32,4 +32,10 @@ MODSRCS = smbsrv.c
include ../../../../Makefile.cmd
include ../../../../Makefile.cmd.64
include ../../Makefile.amd64
+
+ROOTKMOD = $(ROOT)/usr/kernel/kmdb$(MACHMODDIR)
+
include ../../../Makefile.module
+
+$(ROOTKMOD):
+ $(INS.dir)
diff --git a/usr/src/cmd/mdb/intel/ia32/smbsrv/Makefile b/usr/src/cmd/mdb/intel/ia32/smbsrv/Makefile
index c98245d4e1..b956a79235 100644
--- a/usr/src/cmd/mdb/intel/ia32/smbsrv/Makefile
+++ b/usr/src/cmd/mdb/intel/ia32/smbsrv/Makefile
@@ -21,8 +21,8 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
#
-#ident "%Z%%M% %I% %E% SMI"
MODULE = smbsrv.so
MDBTGT = kvm
@@ -31,4 +31,10 @@ MODSRCS = smbsrv.c
include ../../../../Makefile.cmd
include ../../Makefile.ia32
+
+ROOTKMOD = $(ROOT)/usr/kernel/kmdb
+
include ../../../Makefile.module
+
+$(ROOTKMOD):
+ $(INS.dir)
diff --git a/usr/src/cmd/mdb/sparc/v9/smbsrv/Makefile b/usr/src/cmd/mdb/sparc/v9/smbsrv/Makefile
index 3fe1397e49..0471526b50 100644
--- a/usr/src/cmd/mdb/sparc/v9/smbsrv/Makefile
+++ b/usr/src/cmd/mdb/sparc/v9/smbsrv/Makefile
@@ -21,8 +21,8 @@
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
#
-#ident "%Z%%M% %I% %E% SMI"
MODULE = smbsrv.so
MDBTGT = kvm
@@ -32,4 +32,10 @@ MODSRCS = smbsrv.c
include ../../../../Makefile.cmd
include ../../../../Makefile.cmd.64
include ../../Makefile.sparcv9
+
+ROOTKMOD = $(ROOT)/usr/kernel/kmdb$(MACHMODDIR)
+
include ../../../Makefile.module
+
+$(ROOTKMOD):
+ $(INS.dir)
diff --git a/usr/src/cmd/smbsrv/smbd/smbd_main.c b/usr/src/cmd/smbsrv/smbd/smbd_main.c
index c8bb33c1af..4df18b3cdf 100644
--- a/usr/src/cmd/smbsrv/smbd/smbd_main.c
+++ b/usr/src/cmd/smbsrv/smbd/smbd_main.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
#include <sys/types.h>
@@ -60,7 +61,6 @@
#define SMBD_ONLINE_WAIT_INTERVAL 10
#define SMBD_REFRESH_INTERVAL 10
-#define DRV_DEVICE_PATH "/devices/pseudo/smbsrv@0:smbsrv"
#define SMB_DBDIR "/var/smb"
static int smbd_daemonize_init(void);
diff --git a/usr/src/lib/smbsrv/libsmb/common/smb_kmod.c b/usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
index 9aad501558..91bb16bc6e 100644
--- a/usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
+++ b/usr/src/lib/smbsrv/libsmb/common/smb_kmod.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
#include <sys/types.h>
@@ -41,7 +42,7 @@
#include <smbsrv/smb_ioctl.h>
#include <smbsrv/libsmb.h>
-#define SMBDRV_DEVICE_PATH "/devices/pseudo/smbsrv@0:smbsrv"
+#define SMBDRV_DEVICE_PATH "/dev/smbsrv"
#define SMB_IOC_DATA_SIZE (256 * 1024)
static int smb_kmod_ioctl(int, smb_ioc_header_t *, uint32_t);
diff --git a/usr/src/pkg/manifests/service-file-system-smb.mf b/usr/src/pkg/manifests/service-file-system-smb.mf
index 566443b846..9d5f5e5026 100644
--- a/usr/src/pkg/manifests/service-file-system-smb.mf
+++ b/usr/src/pkg/manifests/service-file-system-smb.mf
@@ -21,6 +21,7 @@
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
#
set name=pkg.fmri value=pkg:/service/file-system/smb@$(PKGVERS)
@@ -29,11 +30,6 @@ set name=pkg.summary value="SMB Server"
set name=info.classification \
value="org.opensolaris.category.2008:System/File System"
set name=variant.arch value=$(ARCH)
-dir path=kernel group=sys
-dir path=kernel/drv group=sys
-dir path=kernel/drv/$(ARCH64) group=sys
-dir path=kernel/kmdb group=sys
-dir path=kernel/kmdb/$(ARCH64) group=sys
dir path=lib
dir path=lib/svc
dir path=lib/svc/manifest group=sys
@@ -41,6 +37,11 @@ dir path=lib/svc/manifest/network group=sys
dir path=lib/svc/manifest/network/smb group=sys
dir path=lib/svc/method
dir path=usr group=sys
+dir path=usr/kernel group=sys
+dir path=usr/kernel/drv group=sys
+dir path=usr/kernel/drv/$(ARCH64) group=sys
+dir path=usr/kernel/kmdb group=sys
+dir path=usr/kernel/kmdb/$(ARCH64) group=sys
dir path=usr/lib
dir path=usr/lib/fs group=sys
dir path=usr/lib/fs/smb group=sys
@@ -64,20 +65,18 @@ dir path=var/smb/cvol/windows/system32 group=sys
dir path=var/smb/cvol/windows/system32/vss group=sys
dir path=var/svc group=sys
driver name=smbsrv perms="* 0640 root sys"
-file path=kernel/drv/$(ARCH64)/smbsrv group=sys
-$(i386_ONLY)file path=kernel/drv/smbsrv group=sys
-file path=kernel/drv/smbsrv.conf group=sys
-file path=kernel/kmdb/$(ARCH64)/smbsrv group=sys mode=0555
-$(i386_ONLY)file path=kernel/kmdb/smbsrv group=sys mode=0555
file path=lib/svc/manifest/network/smb/server.xml group=sys mode=0444
file path=lib/svc/method/svc-smbd mode=0555
+file path=usr/kernel/drv/$(ARCH64)/smbsrv group=sys
+$(i386_ONLY)file path=usr/kernel/drv/smbsrv group=sys
+file path=usr/kernel/drv/smbsrv.conf group=sys
+file path=usr/kernel/kmdb/$(ARCH64)/smbsrv group=sys mode=0555
+$(i386_ONLY)file path=usr/kernel/kmdb/smbsrv group=sys mode=0555
file path=usr/lib/fs/smb/$(ARCH64)/libshare_smb.so.1
file path=usr/lib/fs/smb/libshare_smb.so.1
file path=usr/lib/mdb/kvm/$(ARCH64)/smbsrv.so group=sys mode=0555
$(i386_ONLY)file path=usr/lib/mdb/kvm/smbsrv.so group=sys mode=0555
file path=usr/lib/reparse/libreparse_smb.so.1
-file path=usr/lib/reparse/llib-lreparse_smb
-file path=usr/lib/reparse/llib-lreparse_smb.ln
file path=usr/lib/security/pam_smb_passwd.so.1
file path=usr/lib/smbsrv/libmlrpc.so.1
file path=usr/lib/smbsrv/libmlsvc.so.1
@@ -85,16 +84,6 @@ file path=usr/lib/smbsrv/libsmb.so.1
file path=usr/lib/smbsrv/libsmbns.so.1
file path=usr/lib/smbsrv/libsmbrdr.so.1
file path=usr/lib/smbsrv/libsqlite.so.1
-file path=usr/lib/smbsrv/llib-lmlrpc
-file path=usr/lib/smbsrv/llib-lmlrpc.ln
-file path=usr/lib/smbsrv/llib-lmlsvc
-file path=usr/lib/smbsrv/llib-lmlsvc.ln
-file path=usr/lib/smbsrv/llib-lsmb
-file path=usr/lib/smbsrv/llib-lsmb.ln
-file path=usr/lib/smbsrv/llib-lsmbns
-file path=usr/lib/smbsrv/llib-lsmbns.ln
-file path=usr/lib/smbsrv/llib-lsmbrdr
-file path=usr/lib/smbsrv/llib-lsmbrdr.ln
file path=usr/lib/smbsrv/smbd mode=0555
file path=usr/sbin/smbadm mode=0555
file path=usr/sbin/smbstat mode=0555
diff --git a/usr/src/pkg/manifests/system-file-system-smb.mf b/usr/src/pkg/manifests/system-file-system-smb.mf
index 8712a56107..037832279f 100644
--- a/usr/src/pkg/manifests/system-file-system-smb.mf
+++ b/usr/src/pkg/manifests/system-file-system-smb.mf
@@ -21,6 +21,7 @@
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
#
set name=pkg.fmri value=pkg:/system/file-system/smb@$(PKGVERS)
@@ -61,7 +62,7 @@ dir path=usr/share/man/man1m
dir path=usr/share/man/man4
dir path=usr/share/man/man5
dir path=usr/share/man/man7fs
-driver name=nsmb devlink=type=ddi_pseudo;name=nsmb\t\D perms="* 0666 root sys"
+driver name=nsmb perms="* 0666 root sys"
file path=lib/svc/manifest/network/smb/client.xml group=sys mode=0444
file path=lib/svc/method/smb-client mode=0555
file path=usr/bin/smbutil mode=0555
diff --git a/usr/src/uts/intel/smbsrv/Makefile b/usr/src/uts/intel/smbsrv/Makefile
index 77ef7351ba..26ad642da1 100644
--- a/usr/src/uts/intel/smbsrv/Makefile
+++ b/usr/src/uts/intel/smbsrv/Makefile
@@ -21,12 +21,12 @@
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
+
#
# This makefile drives the production of the cifs server file system
# kernel module.
#
-# intel implementation architecture dependent
-#
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
@@ -39,7 +39,7 @@ UTSBASE = ../..
MODULE = smbsrv
OBJECTS = $(SMBSRV_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(SMBSRV_OBJS:%.o=$(LINTS_DIR)/%.ln)
-ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
+ROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/fs/smbsrv
#
diff --git a/usr/src/uts/sparc/smbsrv/Makefile b/usr/src/uts/sparc/smbsrv/Makefile
index 023d1c1cd5..17a187f480 100644
--- a/usr/src/uts/sparc/smbsrv/Makefile
+++ b/usr/src/uts/sparc/smbsrv/Makefile
@@ -21,6 +21,7 @@
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
+# Copyright 2011 Nexenta Systems, Inc. All rights reserved.
#
# This makefile drives the production of the cifs server file system
@@ -38,7 +39,7 @@ UTSBASE = ../..
MODULE = smbsrv
OBJECTS = $(SMBSRV_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(SMBSRV_OBJS:%.o=$(LINTS_DIR)/%.ln)
-ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
+ROOTMODULE = $(USR_DRV_DIR)/$(MODULE)
CONF_SRCDIR = $(UTSBASE)/common/fs/smbsrv
#