lkml.org 
[lkml]   [2001]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject2.4.0-pre able to mount SHM twice

This is probably due to the source being 'none', but the shm mount point
can be mounted twice at the same mount point.

Shouldn't mount(2) return -EBUSY in this case?


# cat /etc/mtab
/dev/hda4 / ext2 rw,errors=remount-ro,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /boot ext2 rw 0 0
/dev/hda3 /mnt/win vfat rw 0 0
none /proc/bus/usb usbdevfs rw 0 0

# mount /dev/shm
# cat /etc/mtab
/dev/hda4 / ext2 rw,errors=remount-ro,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /boot ext2 rw 0 0
/dev/hda3 /mnt/win vfat rw 0 0
none /proc/bus/usb usbdevfs rw 0 0
none /dev/shm shm rw 0 0

# mount /dev/shm
# cat /etc/mtab
/dev/hda4 / ext2 rw,errors=remount-ro,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /boot ext2 rw 0 0
/dev/hda3 /mnt/win vfat rw 0 0
none /proc/bus/usb usbdevfs rw 0 0
none /dev/shm shm rw 0 0
none /dev/shm shm rw 0 0

# umount /dev/shm
# cat /etc/mtab
/dev/hda4 / ext2 rw,errors=remount-ro,errors=remount-ro 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /boot ext2 rw 0 0
/dev/hda3 /mnt/win vfat rw 0 0
none /proc/bus/usb usbdevfs rw 0 0

Jordan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.024 / U:10.764 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site