fs_2.tar

OpenSolaris


Sparc
(32bit)
Sparc
(64bit)
x86x64
????
Solaris10-??
OpenSolaris-?









iumfs_readdirVOP_READDIRiumfs_request_readir
iumfs_getattrVOP_GETATTRiumfs_request_getattr
iumfs_lookupVOP_LOOKUPiumfs_request_getattr
iumfs_getapageVOP_GETPAGEiumfs_request_read

1iumfs_daemon_request_enter()
2iumfs_daemon_request_start()
3iumfs_daemon_request_exit()


open
close
read
write
mmap
poll


# modinfo |grep -i iumfs
190 7bfb9cc8   3828  24   1  iumfs (file system for iumfs)
190 7bfb9cc8   3828 148   1  iumfs (control driver for iumfs)



readdirNLST -a
readRETR
getattrNLST -dlAL


RFC 959:

  • crw-rw-rw-   1 root  sys   146, 3  Feb  11   00:13 tcp6@0:tcp6
    crw-rw-rw-   1 root  sys   146, 3  Feb  11   2005 tcp6@0:tcp6
    
    
  • -rwxr-xr-x   1 root  bin      203  Dec  10   00:13  clean.sh
    -rwxr-xr-x   1 root  bin      203  Dec  10   2005   clean.sh
    
    


  1. REST 100
  2. PASV
  3. RETR hoge
  4. ABORT





# mount -F iumfs -o user=root,pass=hoge  ftp://srv.example.com/export/  /mnt
                 ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^   ^^^^


OpenSolaris

# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /bin/ginstall -c
checking for isainfo... yes
configure: creating ./config.status
config.status: creating Makefile			  
					  
# make
gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 -mcmodel=kernel -mno-red-zone 
-D_KERNEL -I. iumfs.c -o iumfs.o
gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 -mcmodel=kernel -mno-red-zone 
-D_KERNEL -I. iumfs_vnode.c -o iumfs_vnode.o
gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 -mcmodel=kernel -mno-red-zone
-D_KERNEL -I. iumfs_cntl_device.c -o iumfs_cntl_device.o
gcc -c -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 -mcmodel=kernel -mno-red-zone 
-D_KERNEL -I. iumfs_request.c -o iumfs_request.o
ld -dn -r iumfs.o iumfs_vnode.o iumfs_cntl_device.o iumfs_request.o -o iumfs
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 iumfs_mount.c -o mount
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 iumfsd.c -lsocket -lnsl -o iumfsd
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 fstestd.c -lsocket -lnsl -o fstestd
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" 
-DPACKAGE_BUGREPORT=\"\" -g -O2 -Wall -DOPENSOLARIS -DSOL10 -m64 fstest.c -o fstest
					  
# make install								  
/bin/ginstall -c -m 0644 -o root -g sys iumfs /kernel/fs/amd64
/bin/ginstall -c -m 0644 -o root -g sys iumfs.conf /usr/kernel/drv
/usr/bin/ln /kernel/fs/amd64/iumfs /usr/kernel/drv/amd64/iumfs
/usr/sbin/add_drv iumfs
/bin/ginstall -c -d -m 0755 -o root -g bin /usr/lib/fs/iumfs
/bin/ginstall -c -m 0755 -o root -g bin mount /usr/lib/fs/iumfs
/bin/ginstall -c -d -m 0755 -o root -g bin /usr/local/bin
/bin/ginstall -c -m 0755 -o root -g bin iumfsd /usr/local/bin
/usr/sbin/devfsadm -t ./iumfs_devlink.tab -i iumfs


# make uninstall
pkill -x iumfsd
/usr/sbin/rem_drv iumfs
rm /kernel/fs/amd64/iumfs
rm /usr/kernel/drv/amd64/iumfs
rm /usr/kernel/drv/iumfs.conf
rm /usr/lib/fs/iumfs/mount
rm -rf /usr/lib/fs/iumfs
rm -rf /usr/local/bin/iumfsd
*** Error code 1 (ignored)

# make uninstall
pkill -x iumfsd
*** Error code 1 (ignored)
/usr/sbin/rem_drv iumfs
Device busy
Cannot unload module: iumfs
Will be unloaded upon reboot.
rm /kernel/fs/amd64/iumfs
rm /usr/kernel/drv/amd64/iumfs
rm /usr/kernel/drv/iumfs.conf
rm /usr/lib/fs/iumfs/mount
rm -rf /usr/lib/fs/iumfs
rm -rf /usr/local/bin/iumfsd


Usage: iumfsd [-d level]


     ftp://host/pathname





     -o options




     mount_point

# /usr/sbin/mount -F iumfs -o user=hoge,pass=hehe ftp://srv.example.com/export /mnt
#
# /usr/sbin/mount -F iumfs ftp://srv.example.com/export /mnt
#
# mount
...
...

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

# cd /mnt
# /bin/ls
file1  file2

# ls -la




# head file1
This is a test file
This is a test file
This is a test file
This is a test file
This is a test file
This is a test file
This is a test file
This is a test file
This is a test file
This is a test file
#

# cp file1 /var/tmp
#

# chmod 777 file1
# touch file1
# chown nobody file1
# cp /var/adm/messages file1

Usage: umount mount_point

# umount /mnt
#
# pwd
/mnt
# umount /mnt







トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS