1. Only root can access the media first time. Obviously, it is the same 
as mounting it and normally only root is allowed t to mount something 
:-) Like here:

Sep  2 18:19:25 cooker kernel: supermount_read_super: state=unmounted 
version=0
mode=00040777 mnt=00000000 open=0 write=0
Sep  2 18:19:25 cooker kernel: [super_operations.c:parse_options:149] 
options **dev=/dev/hdc,fs=iso9660**
Sep  2 18:19:25 cooker kernel: [super_operations.c:parse_options:169] 
parsing option **dev**
Sep  2 18:19:25 cooker kernel: [super_operations.c:copy_option:131] 
assigning value **/dev/hdc**
Sep  2 18:19:25 cooker kernel: [super_operations.c:parse_options:169] 
parsing option **fs**
Sep  2 18:19:25 cooker kernel: [super_operations.c:copy_option:131] 
assigning value **iso9660**
Sep  2 18:19:31 cooker kernel: supermount_permission: addr=c5762e40 
inode=27130
count=1 mode=040777 supermounted
Sep  2 18:19:31 cooker kernel: get_subfs_dentry: addr=c5ab18a0 name=/ 
count=5 flags=0 parent=c5ab18a0 sb=cf19a400 inode=c5762e40
Sep  2 18:19:31 cooker kernel: get_subfs_dentry: addr=c5762e40 
inode=27130 count=1 mode=040777 supermounted
Sep  2 18:19:31 cooker kernel: supermount_media_check: state=unmounted 
version=0 mode=00040777 mnt=00000000 open=0 write=0
Sep  2 18:19:31 cooker kernel: supermount_mount: state=unmounted 
version=0 mode=00040777 mnt=00000000 open=0 write=0
Sep  2 18:19:31 cooker kernel: [super.c:supermount_media_check:207] 
Mount failed, errno 1

errno 1 is EPERM.

After (sub-)filesystem is mounted normal user is allowed to use it as well.

2. The same bug with nls as before.

/mnt/cdrom /mnt/cdrom supermount 
ro,dev=/dev/cdrom,fs=iso9660,noauto,--,iocharset=koi8-r,codepage=866 0 0

Insert CD, list contents (as root :-) - it is O.K. file names are 
correctly in Russian, lsmod shows:
nls_koi8-r              3888   1 (autoclean)

Eject CD, insert the same CD, close tray. List contents. Just question 
marks instead of Russian characters:

{pts/1}% sudo ls -l /mnt/cdrom
����� 30
dr-xr-xr-x    1 root     root         2048 ��� 21 17:07 1986-?????????? ???
dr-xr-xr-x    1 root     root         2048 ��� 21 17:09 1988-????

and lsmod suddenly shows one more nls module:

{pts/1}% lsmod
Module                  Size  Used by
nls_iso8859-1           2880   1 (autoclean)
nls_koi8-r              3888   0 (autoclean)

Note that nls_koi8-r is not in use anymore.

3. Attempt to access supermounted media after eject -t hangs. It is not 
possible to kill this process:

{pts/1}% ll /mnt/cdrom
..... nothing happens.

strace on this porcess hangs as well. In dmesg I get:

supermount_permission: addr=c9533e40 inode=26661 count=1 mode=040777 
supermounted
get_subfs_dentry: addr=c9535f40 name=/ count=61 flags=0 parent=c9535f40 
sb=cfa62c00 inode=c9533e40
get_subfs_dentry: addr=c9533e40 inode=26661 count=1 mode=040777 supermounted
supermount_media_check: state=suspended version=41911 mode=00040777 
mnt=c14454e0 open=-1 write=0
supermount_umount: state=suspended version=41911 mode=00040777 
mnt=c14454e0 open=-1 write=0
[super.c:just_check_disk_change:59] beginning
[super.c:just_check_disk_change:63] Disk change detected on device 22/0
[super.c:umount_subfs:73] beginning

and that's all. When rebooting, killall crashes and CD cannot be unmounted.

4. When I try to unmount supermouned media (using umount /mnt/cdrom) I get

VFS:  Busy inodes after unmount. Self-destruct in 5 seconds.  Have a 
nice day...

5. Several times changing media I got in logs:

VFS: busy inodes on changed media.
VFS: busy inodes on changed media.

-andrej

Reply via email to