- Timestamp:
- Mar 9, 2009 2:47:32 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/solaris
- Files:
-
- 5 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/makepackage.sh
r17241 r17579 81 81 filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxguest.conf=vboxguest.conf"' '$3 = "usr/kernel/drv/vboxguest.conf=vboxguest.conf"' 82 82 83 # 32-bit vboxvfs84 #filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxvfs=vboxvfs"' '$3 = "usr/kernel/fs/vboxvfs=vboxvfs"; $6="sys"'85 86 # 64-bit vboxvfs87 #filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/amd64/vboxvfs=amd64/vboxvfs"' '$3 = "usr/kernel/fs/amd64/vboxvfs=amd64/vboxvfs"; $6="sys"'88 89 83 # vboxvfsmount binary (always 32-bit on combined package) 90 84 filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/vboxvfsmount=vboxvfsmount"' '$3 = "etc/fs/vboxvfs/mount=vboxvfsmount"; $6="sys"' -
trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
r17283 r17579 221 221 # Shared Folder kernel module (different for S10 & Nevada) 222 222 osverstr=`uname -r` 223 vbox vfsmod="vboxvfs"224 vbox vfsunused="vboxvfs_s10"223 vboxfsmod="vboxfs" 224 vboxfsunused="vboxfs_s10" 225 225 if test "$osverstr" = "5.10"; then 226 vbox vfsmod="vboxvfs_s10"227 vbox vfsunused="vboxvfs"226 vboxfsmod="vboxfs_s10" 227 vboxfsunused="vboxfs" 228 228 fi 229 229 230 230 # Move the appropriate module to kernel/fs & remove the unused module name from pkg and file from disk 231 231 # 64-bit shared folder module 232 if test -f "$vboxadditions64_path/$vbox vfsmod"; then233 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/$solaris64dir/vbox vfs" f234 mv -f $vboxadditions64_path/$vbox vfsmod /usr/kernel/fs/$solaris64dir/vboxvfs235 /usr/sbin/removef $PKGINST $vboxadditions64_path/$vbox vfsmod 1>/dev/null236 /usr/sbin/removef $PKGINST $vboxadditions64_path/$vbox vfsunused 1>/dev/null237 rm -f $vboxadditions64_path/$vbox vfsunused232 if test -f "$vboxadditions64_path/$vboxfsmod"; then 233 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/$solaris64dir/vboxfs" f 234 mv -f $vboxadditions64_path/$vboxfsmod /usr/kernel/fs/$solaris64dir/vboxfs 235 /usr/sbin/removef $PKGINST $vboxadditions64_path/$vboxfsmod 1>/dev/null 236 /usr/sbin/removef $PKGINST $vboxadditions64_path/$vboxfsunused 1>/dev/null 237 rm -f $vboxadditions64_path/$vboxfsunused 238 238 fi 239 239 240 240 # 32-bit shared folder module 241 if test -f "$vboxadditions_path/$vbox vfsmod"; then242 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/vbox vfs" f243 mv -f $vboxadditions_path/$vbox vfsmod /usr/kernel/fs/vboxvfs244 /usr/sbin/removef $PKGINST $vboxadditions_path/$vbox vfsmod 1>/dev/null245 /usr/sbin/removef $PKGINST $vboxadditions_path/$vbox vfsunused 1>/dev/null246 rm -f $vboxadditions_path/$vbox vfsunused241 if test -f "$vboxadditions_path/$vboxfsmod"; then 242 /usr/sbin/installf -c none $PKGINST "/usr/kernel/fs/vboxfs" f 243 mv -f $vboxadditions_path/$vboxfsmod /usr/kernel/fs/vboxfs 244 /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxfsmod 1>/dev/null 245 /usr/sbin/removef $PKGINST $vboxadditions_path/$vboxfsunused 1>/dev/null 246 rm -f $vboxadditions_path/$vboxfsunused 247 247 fi 248 248 -
trunk/src/VBox/Additions/solaris/Installer/vboxguest.sh
r17031 r17579 20 20 SILENTUNLOAD="" 21 21 MODNAME="vboxguest" 22 VFSMODNAME="vbox vfs"22 VFSMODNAME="vboxfs" 23 23 MODDIR32="/usr/kernel/drv" 24 24 MODDIR64=$MODDIR32/amd64 … … 69 69 } 70 70 71 vbox vfs_loaded()71 vboxfs_loaded() 72 72 { 73 73 module_loaded $VFSMODNAME … … 109 109 } 110 110 111 start_vbox vfs()112 { 113 if vbox vfs_loaded; then111 start_vboxfs() 112 { 113 if vboxfs_loaded; then 114 114 info "VirtualBox FileSystem kernel module already loaded." 115 115 else 116 116 /usr/sbin/modload -p fs/$VFSMODNAME || abort "Failed to load VirtualBox FileSystem kernel module." 117 if test ! vbox vfs_loaded; then117 if test ! vboxfs_loaded; then 118 118 abort "Failed to load VirtualBox FileSystem kernel module." 119 119 else … … 123 123 } 124 124 125 stop_vbox vfs()126 { 127 if vbox vfs_loaded; then128 vbox vfs_mod_id=`/usr/sbin/modinfo | grep $VFSMODNAME | cut -f 1 -d ' ' `129 if test -n "$vbox vfs_mod_id"; then130 /usr/sbin/modunload -i $vbox vfs_mod_id || abort "Failed to unload VirtualBox FileSystem module."125 stop_vboxfs() 126 { 127 if vboxfs_loaded; then 128 vboxfs_mod_id=`/usr/sbin/modinfo | grep $VFSMODNAME | cut -f 1 -d ' ' ` 129 if test -n "$vboxfs_mod_id"; then 130 /usr/sbin/modunload -i $vboxfs_mod_id || abort "Failed to unload VirtualBox FileSystem module." 131 131 info "VirtualBox FileSystem kernel module unloaded." 132 132 fi … … 163 163 stop_all() 164 164 { 165 stop_vbox vfs165 stop_vboxfs 166 166 stop_module 167 167 return 0 … … 195 195 ;; 196 196 vfsstart) 197 start_vbox vfs197 start_vboxfs 198 198 ;; 199 199 vfsstop) 200 stop_vbox vfs200 stop_vboxfs 201 201 ;; 202 202 *) -
trunk/src/VBox/Additions/solaris/Makefile.kmk
r17241 r17579 61 61 VBOX_SOLPACKFILES = \ 62 62 $(SOLARIS_ADD_BIN_64)/vboxguest \ 63 $(SOLARIS_ADD_BIN_64)/vbox vfs \64 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN_64)/vbox vfs_s10) \63 $(SOLARIS_ADD_BIN_64)/vboxfs \ 64 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN_64)/vboxfs_s10) \ 65 65 $(SOLARIS_ADD_BIN_64)/VBoxClient \ 66 66 $(SOLARIS_ADD_BIN_64)/VBoxService \ … … 76 76 $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_71.so \ 77 77 $(SOLARIS_ADD_BIN_32)/vboxguest \ 78 $(SOLARIS_ADD_BIN_32)/vbox vfs \79 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN_32)/vbox vfs_s10) \80 $(SOLARIS_ADD_BIN_32)/vbox vfsmount \78 $(SOLARIS_ADD_BIN_32)/vboxfs \ 79 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN_32)/vboxfs_s10) \ 80 $(SOLARIS_ADD_BIN_32)/vboxfsmount \ 81 81 $(SOLARIS_ADD_BIN_32)/VBoxClient \ 82 82 $(SOLARIS_ADD_BIN_32)/VBoxService \ … … 100 100 VBOX_SOLPACKFILES = \ 101 101 $(SOLARIS_ADD_BIN)/vboxguest \ 102 $(SOLARIS_ADD_BIN)/vbox vfs \103 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN)/vbox vfs_s10) \104 $(SOLARIS_ADD_BIN)/vbox vfsmount \102 $(SOLARIS_ADD_BIN)/vboxfs \ 103 $(if $(VBOX_OSE),,$(SOLARIS_ADD_BIN)/vboxfs_s10) \ 104 $(SOLARIS_ADD_BIN)/vboxfsmount \ 105 105 $(SOLARIS_ADD_BIN)/VBoxClient \ 106 106 $(SOLARIS_ADD_BIN)/VBoxService \ … … 168 168 ifdef VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE 169 169 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_64)/vboxguest $(SOLARIS_ADD_INST_DIR_64)/vboxguest 170 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_64)/vbox vfs $(SOLARIS_ADD_INST_DIR_64)/vboxvfs171 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_64)/vbox vfs_s10 $(SOLARIS_ADD_INST_DIR_64)/vboxvfs_s10)170 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_64)/vboxfs $(SOLARIS_ADD_INST_DIR_64)/vboxfs 171 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_64)/vboxfs_s10 $(SOLARIS_ADD_INST_DIR_64)/vboxfs_s10) 172 172 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxClient $(SOLARIS_ADD_INST_DIR_64)/VBoxClient 173 173 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_64)/VBoxService $(SOLARIS_ADD_INST_DIR_64)/VBoxService … … 185 185 $(QUIET)$(BIN_COPY) $(SOLARIS_ADD_BIN_64)/vboxmouse_drv_71.so $(SOLARIS_ADD_INST_DIR_64)/vboxmouse_drv_71.so 186 186 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_32)/vboxguest $(SOLARIS_ADD_INST_DIR_32)/vboxguest 187 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_32)/vbox vfs $(SOLARIS_ADD_INST_DIR_32)/vboxvfs188 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_32)/vbox vfs_s10 $(SOLARIS_ADD_INST_DIR_32)/vboxvfs_s10)189 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_ADD_BIN_32)/vbox vfsmount $(SOLARIS_ADD_INST_DIR_32)/vboxvfsmount187 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_32)/vboxfs $(SOLARIS_ADD_INST_DIR_32)/vboxfs 188 $(QUIET)$(if $(VBOX_OSE),,$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN_32)/vboxfs_s10 $(SOLARIS_ADD_INST_DIR_32)/vboxfs_s10) 189 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_ADD_BIN_32)/vboxfsmount $(SOLARIS_ADD_INST_DIR_32)/vboxfsmount 190 190 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxClient $(SOLARIS_ADD_INST_DIR_32)/VBoxClient 191 191 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN_32)/VBoxService $(SOLARIS_ADD_INST_DIR_32)/VBoxService … … 235 235 else # !VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE 236 236 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN)/vboxguest $(SOLARIS_ADD_INST_DIR_ISA)/vboxguest 237 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN)/vbox vfs $(SOLARIS_ADD_INST_DIR_ISA)/vboxvfs238 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN)/vbox vfs_s10 $(SOLARIS_ADD_INST_DIR_ISA)/vboxvfs_s10239 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_ADD_BIN)/vbox vfsmount $(SOLARIS_ADD_INST_DIR_ISA)/vboxvfsmount237 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN)/vboxfs $(SOLARIS_ADD_INST_DIR_ISA)/vboxfs 238 $(QUIET)$(INSTALL) -m 0644 $(SOLARIS_ADD_BIN)/vboxfs_s10 $(SOLARIS_ADD_INST_DIR_ISA)/vboxfs_s10 239 $(QUIET)$(INSTALL) -m 0755 $(SOLARIS_ADD_BIN)/vboxfsmount $(SOLARIS_ADD_INST_DIR_ISA)/vboxfsmount 240 240 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxClient $(SOLARIS_ADD_INST_DIR_ISA)/VBoxClient 241 241 $(QUIET)$(INSTALL) -s -m 0755 $(SOLARIS_ADD_BIN)/VBoxService $(SOLARIS_ADD_INST_DIR_ISA)/VBoxService -
trunk/src/VBox/Additions/solaris/SharedFolders/Makefile.kmk
r17211 r17579 28 28 29 29 # 30 # vbox vfs - The Shared Folder Driver30 # vboxfs - The Shared Folder Driver 31 31 # 32 SYSMODS.solaris += vbox vfs33 vbox vfs_TEMPLATE = VBOXGUESTR034 vbox vfs_DEFS = VBOX_WITH_HGCM35 vbox vfs_INCS := \32 SYSMODS.solaris += vboxfs 33 vboxfs_TEMPLATE = VBOXGUESTR0 34 vboxfs_DEFS = VBOX_WITH_HGCM 35 vboxfs_INCS := \ 36 36 . 37 vbox vfs_SOURCES = \37 vboxfs_SOURCES = \ 38 38 vboxfs_vfs.c \ 39 39 vboxfs_vnode.c \ 40 40 vboxfs_prov.c 41 vbox vfs_LIBS = \41 vboxfs_LIBS = \ 42 42 $(VBOX_LIB_VBGL_R0) \ 43 43 $(VBOX_LIB_IPRT_GUEST_R0) 44 vbox vfs_LDFLAGS += -N drv/vboxguest44 vboxfs_LDFLAGS += -N drv/vboxguest 45 45 46 46 47 47 ifndef VBOX_OSE 48 48 # 49 # vbox vfs_s10 - The Shared Folder Driver for Solaris 1049 # vboxfs_s10 - The Shared Folder Driver for Solaris 10 50 50 # 51 SYSMODS.solaris += vbox vfs_s1052 vbox vfs_s10_TEMPLATE = VBOXGUESTR053 vbox vfs_s10_DEFS = VBOX_WITH_HGCM VBOX_VFS_SOLARIS_10U654 vbox vfs_s10_INCS := \51 SYSMODS.solaris += vboxfs_s10 52 vboxfs_s10_TEMPLATE = VBOXGUESTR0 53 vboxfs_s10_DEFS = VBOX_WITH_HGCM VBOX_VFS_SOLARIS_10U6 54 vboxfs_s10_INCS := \ 55 55 solaris10/ \ 56 56 . 57 vbox vfs_s10_SOURCES = \57 vboxfs_s10_SOURCES = \ 58 58 vboxfs_vfs.c \ 59 59 vboxfs_vnode.c \ 60 60 vboxfs_prov.c 61 vbox vfs_s10_LIBS = \61 vboxfs_s10_LIBS = \ 62 62 $(VBOX_LIB_VBGL_R0) \ 63 63 $(VBOX_LIB_IPRT_GUEST_R0) 64 vbox vfs_s10_LDFLAGS += -N drv/vboxguest64 vboxfs_s10_LDFLAGS += -N drv/vboxguest 65 65 endif # VBOX_OSE 66 66 67 67 68 68 # 69 # mount - Userland mount wrapper for vbox vfs69 # mount - Userland mount wrapper for vboxfs 70 70 # 71 PROGRAMS += vbox vfsmount72 vbox vfsmount_TEMPLATE = VBOXGUESTR3EXE73 vbox vfsmount_SOURCES = vboxvfs_mount.c71 PROGRAMS += vboxfsmount 72 vboxfsmount_TEMPLATE = VBOXGUESTR3EXE 73 vboxfsmount_SOURCES = vboxfs_mount.c 74 74 75 75 include $(KBUILD_PATH)/subfooter.kmk -
trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_mount.c
r17577 r17579 31 31 #include <sys/mount.h> 32 32 33 #include "vbox vfs.h"33 #include "vboxfs.h" 34 34 35 35 /*******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.