Cache fs : cdrom
par
popularité : 1%

Creation d’un cache pour cdrom :
cfsadmin -c /export/cdrom_cache
mkdir /cdrom
ls -la /export/cdrom_cache/ total 30048 d--------- 4 root other 512 Jul 30 15:52 . drwxr-xr-x 5 root root 512 Jul 30 15:52 ..rw------- 1 root other 48 Jul 30 15:52 .cfs_label
rw------- 1 root other 48 Jul 30 15:52 .cfs_label.dup
rwx------ 1 root other 0 Jul 30 15:52 .cfs_lock drwx------ 2 root other 512 Jul 30 15:52 .cfs_mnt_points
rw------- 1 root other 15368192 Jul 30 15:52 .cfs_resource
rw-r—r— 1 root other 4 Jul 30 15:52 .cfs_unmnt
rw-r—r— 1 root other 22 Jul 30 15:52 .nsr drwx------ 2 root other 512 Jul 30 15:52 lost+found
mount -F cachefs -o
backfstype=hsfs,ro,noconst,cachedir=/export/cdrom_cache,cacheid=_cdrom_
/dev/dsk/c0t2d0s0 /cdrom
ls -la /export/cdrom_cache/
total 30052 d--------- 5 root other 512 Jul 30 16:16 . drwxr-xr-x 5 root root 512 Jul 30 15:52 ..rw------- 1 root other 48 Jul 30 15:52 .cfs_label
rw------- 1 root other 48 Jul 30 15:52 .cfs_label.dup
rwx------ 1 root other 0 Jul 30 15:52 .cfs_lock drwx------ 3 root other 512 Jul 30 16:16 .cfs_mnt_points
rw------- 1 root other 15368192 Jul 30 16:16 .cfs_resource
rw-r—r— 1 root other 4 Jul 30 16:16 .cfs_unmnt
rw-r—r— 1 root other 22 Jul 30 15:52 .nsr drwxrwxrwx 3 root root 512 Jul 30 16:16 0000000000007c80 lrwxrwxrwx 1 root root 16 Jul 30 16:16 _cdrom_ -> 0000000000007c80 drwx------ 2 root other 512 Jul 30 15:52 lost+found
ls -aLl /export/cdrom_cache/_cdrom_/
total 24
drwxrwxrwx 3 root root 512 Jul 30 16:16 .
d--------- 5 root other 512 Jul 30 16:16 ..
drwxrwxrwx 2 root root 512 Jul 30 16:16 .cfs_attrcacherw-rw-rw- 1 root root 8192 Jul 30 16:16 .cfs_fsinfo
rw-r—r— 1 root other 304 Jul 30 16:16 .cfs_mnt
cat .cfs_mnt
cachedir : /export/cdrom_cache
mnt_point : /cdrom
special : /dev/dsk/c0t2d0s0
backpath : /export/cdrom_cache/.cfs_mnt_points/_dev_dsk_c0t2d0s0
backfstype : hsfs
cacheid : _cdrom_
cachefs_options : backfstype=hsfs,ro,noconst,cachedir=/export/cdrom_cache,cacheid=_cdrom_
backfs_options : ro
mount_time : 1028038585