summaryrefslogtreecommitdiff
path: root/usr/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib')
-rw-r--r--usr/src/lib/brand/Makefile.brand7
-rw-r--r--usr/src/lib/brand/lx/cmd/Makefile2
-rw-r--r--usr/src/lib/brand/lx/librtld_db/Makefile2
-rw-r--r--usr/src/lib/brand/lx/librtld_db/amd64/Makefile2
-rw-r--r--usr/src/lib/brand/lx/librtld_db/i386/Makefile2
-rw-r--r--usr/src/lib/brand/lx/lx_brand/i386/lx_handler.s4
-rw-r--r--usr/src/lib/brand/lx/lx_nametoaddr/Makefile2
-rw-r--r--usr/src/lib/brand/lx/lx_nametoaddr/amd64/Makefile2
-rw-r--r--usr/src/lib/brand/lx/lx_nametoaddr/i386/Makefile2
-rw-r--r--usr/src/lib/brand/lx/lx_support/Makefile2
-rw-r--r--usr/src/lib/brand/lx/lx_support/lx_support.c3
-rw-r--r--usr/src/lib/brand/lx/lx_thunk/Makefile2
-rw-r--r--usr/src/lib/brand/lx/lx_thunk/amd64/Makefile2
-rw-r--r--usr/src/lib/brand/lx/lx_thunk/i386/Makefile2
-rw-r--r--usr/src/lib/brand/lx/netfiles/Makefile2
-rw-r--r--usr/src/lib/brand/lx/zone/Makefile3
-rw-r--r--usr/src/lib/brand/lx/zone/distros/Makefile2
-rw-r--r--usr/src/lib/brand/native/zone/Makefile3
-rw-r--r--usr/src/lib/brand/sn1/zone/Makefile3
-rw-r--r--usr/src/lib/libzfs/common/libzfs_dataset.c4
20 files changed, 23 insertions, 30 deletions
diff --git a/usr/src/lib/brand/Makefile.brand b/usr/src/lib/brand/Makefile.brand
index 7811875d66..78a4ceb698 100644
--- a/usr/src/lib/brand/Makefile.brand
+++ b/usr/src/lib/brand/Makefile.brand
@@ -61,13 +61,6 @@ $(ROOTPROGS) := FILEMODE = 755
$(ROOTPROGS) := OWNER = root
$(ROOTPROGS) := GROUP = bin
-$(ROOTBRANDDIR) $(ROOTTEMPLATEDIR):
- $(INS.dir)
-
-$(ROOTBRANDDIR64):
- $(INS.dir); cd $(ROOTBRANDDIR); \
- $(RM) 64; $(SYMLINK) $(MACH64) 64;
-
$(ROOTBRANDDIR)/% $(ROOTBRANDDIR64)/% $(ROOTTEMPLATEDIR)/%: %
$(INS.file)
diff --git a/usr/src/lib/brand/lx/cmd/Makefile b/usr/src/lib/brand/lx/cmd/Makefile
index 6b096dd129..1519961954 100644
--- a/usr/src/lib/brand/lx/cmd/Makefile
+++ b/usr/src/lib/brand/lx/cmd/Makefile
@@ -39,7 +39,7 @@ lint:
all: $(PROGS)
-install: all $(ROOTBRANDDIR) $(ROOTPROGS)
+install: all $(ROOTPROGS)
clean:
$(RM) $(PROGS)
diff --git a/usr/src/lib/brand/lx/librtld_db/Makefile b/usr/src/lib/brand/lx/librtld_db/Makefile
index ce2b48a6a8..f1ac26d7d5 100644
--- a/usr/src/lib/brand/lx/librtld_db/Makefile
+++ b/usr/src/lib/brand/lx/librtld_db/Makefile
@@ -43,7 +43,7 @@ lint := TARGET= lint
.KEEP_STATE:
-all install clean clobber: $(ROOTBRANDDIR) $(ROOTBRANDDIR64) $(SUBDIRS)
+all install clean clobber: $(SUBDIRS)
lint: $(LINT_SUBDIRS)
diff --git a/usr/src/lib/brand/lx/librtld_db/amd64/Makefile b/usr/src/lib/brand/lx/librtld_db/amd64/Makefile
index 4d6f84378e..f2cbdd0616 100644
--- a/usr/src/lib/brand/lx/librtld_db/amd64/Makefile
+++ b/usr/src/lib/brand/lx/librtld_db/amd64/Makefile
@@ -35,4 +35,4 @@ include $(SRC)/lib/Makefile.lib.64
CLOBBERFILES = $(ROOTLIBDIR64)/$(DYNLIB)
-install: $(ROOTLIBDIR64) all $(ROOTLIBS64)
+install: all $(ROOTLIBS64)
diff --git a/usr/src/lib/brand/lx/librtld_db/i386/Makefile b/usr/src/lib/brand/lx/librtld_db/i386/Makefile
index b931c56348..e85d3fc08a 100644
--- a/usr/src/lib/brand/lx/librtld_db/i386/Makefile
+++ b/usr/src/lib/brand/lx/librtld_db/i386/Makefile
@@ -34,4 +34,4 @@ include ../Makefile.com
CLOBBERFILES = $(ROOTLIBDIR)/$(DYNLIB)
-install: $(ROOTLIBDIR) all $(ROOTLIBS)
+install: all $(ROOTLIBS)
diff --git a/usr/src/lib/brand/lx/lx_brand/i386/lx_handler.s b/usr/src/lib/brand/lx/lx_brand/i386/lx_handler.s
index c9b6a5a761..3252b9b3d5 100644
--- a/usr/src/lib/brand/lx/lx_brand/i386/lx_handler.s
+++ b/usr/src/lib/brand/lx/lx_brand/i386/lx_handler.s
@@ -195,7 +195,7 @@ lx_sigreturn_tolibc(uintptr_t sp)
* Switch to the Solaris libc's %gs.
*/
movl $LWPGS_SEL, %ebx
- movw %ebx, %gs
+ movw %bx, %gs
/*
* Call lx_emulate() whose only argument is a pointer to the
@@ -240,7 +240,7 @@ lx_sigreturn_tolibc(uintptr_t sp)
movl 0xc(%esp),%eax /* 2nd param is a pointer */
movw %gs,(%eax) /* use the pointer to save current gs */
movl 0x8(%esp),%eax /* first parameter is the new gs value */
- movw %eax, %gs /* switch to the new gs value */
+ movw %ax, %gs /* switch to the new gs value */
pop %eax /* restore eax */
ret
SET_SIZE(lx_swap_gs)
diff --git a/usr/src/lib/brand/lx/lx_nametoaddr/Makefile b/usr/src/lib/brand/lx/lx_nametoaddr/Makefile
index 9142ef2986..f69dcec561 100644
--- a/usr/src/lib/brand/lx/lx_nametoaddr/Makefile
+++ b/usr/src/lib/brand/lx/lx_nametoaddr/Makefile
@@ -42,7 +42,7 @@ lint := TARGET= lint
.KEEP_STATE:
-all install clean clobber: $(ROOTBRANDDIR) $(ROOTBRANDDIR64) $(SUBDIRS)
+all install clean clobber: $(SUBDIRS)
lint: $(LINT_SUBDIRS)
diff --git a/usr/src/lib/brand/lx/lx_nametoaddr/amd64/Makefile b/usr/src/lib/brand/lx/lx_nametoaddr/amd64/Makefile
index 5945014469..a526d34834 100644
--- a/usr/src/lib/brand/lx/lx_nametoaddr/amd64/Makefile
+++ b/usr/src/lib/brand/lx/lx_nametoaddr/amd64/Makefile
@@ -32,4 +32,4 @@ include $(SRC)/lib/Makefile.lib.64
DYNFLAGS += $(LX_THUNK)/$(MACH64)/lx_thunk.so.1
CLOBBERFILES = $(ROOTLIBDIR64)/$(DYNLIB) $(ROOTLIBDIR64)/$(LINTLIB)
-install: $(ROOTLIBDIR64) all $(ROOTLIBS64)
+install: all $(ROOTLIBS64)
diff --git a/usr/src/lib/brand/lx/lx_nametoaddr/i386/Makefile b/usr/src/lib/brand/lx/lx_nametoaddr/i386/Makefile
index 9dc82eb64f..67545e46cd 100644
--- a/usr/src/lib/brand/lx/lx_nametoaddr/i386/Makefile
+++ b/usr/src/lib/brand/lx/lx_nametoaddr/i386/Makefile
@@ -31,4 +31,4 @@ include ../Makefile.com
DYNFLAGS += $(LX_THUNK)/$(MACH)/lx_thunk.so.1
CLOBBERFILES = $(ROOTLIBDIR)/$(DYNLIB) $(ROOTLIBDIR)/$(LINTLIB)
-install: $(ROOTLIBDIR) all $(ROOTLIBS)
+install: all $(ROOTLIBS)
diff --git a/usr/src/lib/brand/lx/lx_support/Makefile b/usr/src/lib/brand/lx/lx_support/Makefile
index aead8b6762..c70b8d31a7 100644
--- a/usr/src/lib/brand/lx/lx_support/Makefile
+++ b/usr/src/lib/brand/lx/lx_support/Makefile
@@ -45,7 +45,7 @@ LDLIBS += -lzonecfg
.KEEP_STATE:
-install: all $(ROOTBRANDDIR) $(ROOTPROGS)
+install: all $(ROOTPROGS)
clean:
$(RM) $(PROG) $(OBJS)
diff --git a/usr/src/lib/brand/lx/lx_support/lx_support.c b/usr/src/lib/brand/lx/lx_support/lx_support.c
index 560b76a685..ab2fcdb491 100644
--- a/usr/src/lib/brand/lx/lx_support/lx_support.c
+++ b/usr/src/lib/brand/lx/lx_support/lx_support.c
@@ -54,6 +54,9 @@
#include <sys/lx_audio.h>
#include <sys/lx_brand.h>
+static void lxs_err(char *msg, ...) __NORETURN;
+static void usage(void) __NORETURN;
+
#define CP_CMD "/usr/bin/cp"
#define MOUNT_CMD "/sbin/mount"
diff --git a/usr/src/lib/brand/lx/lx_thunk/Makefile b/usr/src/lib/brand/lx/lx_thunk/Makefile
index 9142ef2986..f69dcec561 100644
--- a/usr/src/lib/brand/lx/lx_thunk/Makefile
+++ b/usr/src/lib/brand/lx/lx_thunk/Makefile
@@ -42,7 +42,7 @@ lint := TARGET= lint
.KEEP_STATE:
-all install clean clobber: $(ROOTBRANDDIR) $(ROOTBRANDDIR64) $(SUBDIRS)
+all install clean clobber: $(SUBDIRS)
lint: $(LINT_SUBDIRS)
diff --git a/usr/src/lib/brand/lx/lx_thunk/amd64/Makefile b/usr/src/lib/brand/lx/lx_thunk/amd64/Makefile
index 086a3c821a..dbb283dff1 100644
--- a/usr/src/lib/brand/lx/lx_thunk/amd64/Makefile
+++ b/usr/src/lib/brand/lx/lx_thunk/amd64/Makefile
@@ -31,4 +31,4 @@ include $(SRC)/lib/Makefile.lib.64
CLOBBERFILES = $(ROOTLIBDIR64)/$(DYNLIB) $(ROOTLIBDIR64)/$(LINTLIB)
-install: $(ROOTLIBDIR64) all $(ROOTLIBS64)
+install: all $(ROOTLIBS64)
diff --git a/usr/src/lib/brand/lx/lx_thunk/i386/Makefile b/usr/src/lib/brand/lx/lx_thunk/i386/Makefile
index 4ad13cf029..c4b6c71027 100644
--- a/usr/src/lib/brand/lx/lx_thunk/i386/Makefile
+++ b/usr/src/lib/brand/lx/lx_thunk/i386/Makefile
@@ -30,4 +30,4 @@ include ../Makefile.com
CLOBBERFILES = $(ROOTLIBDIR)/$(DYNLIB) $(ROOTLIBDIR)/$(LINTLIB)
-install: $(ROOTLIBDIR) all $(ROOTLIBS)
+install: all $(ROOTLIBS)
diff --git a/usr/src/lib/brand/lx/netfiles/Makefile b/usr/src/lib/brand/lx/netfiles/Makefile
index ea661da94b..7c442c9c57 100644
--- a/usr/src/lib/brand/lx/netfiles/Makefile
+++ b/usr/src/lib/brand/lx/netfiles/Makefile
@@ -35,7 +35,7 @@ include ../Makefile.lx
lint:
-install: $(ROOTBRANDDIR) $(ROOTTXTS)
+install: $(ROOTTXTS)
clean:
-$(RM) etc_default_nfs
diff --git a/usr/src/lib/brand/lx/zone/Makefile b/usr/src/lib/brand/lx/zone/Makefile
index 26c95d2f9b..3ee1e7a168 100644
--- a/usr/src/lib/brand/lx/zone/Makefile
+++ b/usr/src/lib/brand/lx/zone/Makefile
@@ -49,8 +49,7 @@ $(POFILE): $(POFILES)
_msg: $(MSGDOMAINPOFILE)
-install: $(PROGS) $(ROOTBRANDDIR) $(ROOTTEMPLATEDIR) $(ROOTXMLDOCS) \
- $(ROOTTEMPLATES) $(ROOTPROGS) $(SUBDIRS)
+install: $(PROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTPROGS) $(SUBDIRS)
lint:
diff --git a/usr/src/lib/brand/lx/zone/distros/Makefile b/usr/src/lib/brand/lx/zone/distros/Makefile
index 9c410a6176..84b2ec0197 100644
--- a/usr/src/lib/brand/lx/zone/distros/Makefile
+++ b/usr/src/lib/brand/lx/zone/distros/Makefile
@@ -44,7 +44,7 @@ $(ROOTDISTRODIR):
$(ROOTDISTRODIR)/%: %
$(INS.file)
-install: $(ROOTDISTRODIR) $(ROOTDISTROS)
+install: $(ROOTDISTROS)
lint clean all:
diff --git a/usr/src/lib/brand/native/zone/Makefile b/usr/src/lib/brand/native/zone/Makefile
index 00e620cc8d..b60c46df66 100644
--- a/usr/src/lib/brand/native/zone/Makefile
+++ b/usr/src/lib/brand/native/zone/Makefile
@@ -47,8 +47,7 @@ _msg: $(MSGDOMAINPOFILE)
lint:
-install: $(PROGS) $(ROOTBRANDDIR) $(ROOTPROGS) $(ROOTXMLDOCS) \
- $(ROOTTEMPLATEDIR) $(ROOTTEMPLATES)
+install: $(PROGS) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES)
clean:
-$(RM) $(PROGS)
diff --git a/usr/src/lib/brand/sn1/zone/Makefile b/usr/src/lib/brand/sn1/zone/Makefile
index 08c0d906a5..812c88f16a 100644
--- a/usr/src/lib/brand/sn1/zone/Makefile
+++ b/usr/src/lib/brand/sn1/zone/Makefile
@@ -40,8 +40,7 @@ lint:
clean:
-$(RM) $(PROGS)
-install: $(ROOTBRANDDIR) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATEDIR) \
- $(ROOTTEMPLATES)
+install: $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES)
clobber:
-$(RM) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES)
diff --git a/usr/src/lib/libzfs/common/libzfs_dataset.c b/usr/src/lib/libzfs/common/libzfs_dataset.c
index ffef8ad8ed..d3a7aed7e3 100644
--- a/usr/src/lib/libzfs/common/libzfs_dataset.c
+++ b/usr/src/lib/libzfs/common/libzfs_dataset.c
@@ -2248,10 +2248,10 @@ zfs_clone(zfs_handle_t *zhp, const char *target, nvlist_t *props)
/* do the clone */
if (ZFS_IS_VOLUME(zhp)) {
zc.zc_objset_type = DMU_OST_ZVOL;
- type = ZFS_TYPE_FILESYSTEM;
+ type = ZFS_TYPE_VOLUME;
} else {
zc.zc_objset_type = DMU_OST_ZFS;
- type = ZFS_TYPE_VOLUME;
+ type = ZFS_TYPE_FILESYSTEM;
}
if (props) {