mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Bind Mount Extensions (RO --bind mounts)
@ 2004-03-09 10:45 Olivier ARCHER
  2004-03-09 11:32 ` Sean Neakums
  0 siblings, 1 reply; 5+ messages in thread
From: Olivier ARCHER @ 2004-03-09 10:45 UTC (permalink / raw)
  To: linux-kernel

Hi,
	I've tried
http://www.ussg.iu.edu/hypermail/linux/kernel/0309.3/0802.html
to try the 'Bind Mount Extensions (RO --bind mounts)'

I've applied the patch on 2.4.24 and 2.6.3, without effects, ie

mount -t ext2 -o ro /dev/hdc7 /mnt/ro
mount --bind -o rw /mnt/ro /mnt/ro2rw
touch  /mnt/ro2rw/test
touch: connot touch '/mnt/ro2rw/test': Read Only file system

have I miss something ?

curently, i'm running up-to date debian unstable with mount-2.12 and a 
patched version ( 
http://vserver.13thfloor.at/Experimental/patch-2.6.0-test3-bme0.03.diff) 
  of 2.6.3

BTW, is this patch could work on NFS RO mounts ? I'm very interressted 
in it because y try to mount / from nfs RO. I've got some success with 
http://translucency.sourceforge.net/, But I'd would like test others 
approach.

Thx

--
Olivier


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Bind Mount Extensions (RO --bind mounts)
@ 2003-09-28 15:55 Herbert Poetzl
       [not found] ` <20030929111941.GG11543@vega.digitel2002.hu>
  0 siblings, 1 reply; 5+ messages in thread
From: Herbert Poetzl @ 2003-09-28 15:55 UTC (permalink / raw)
  To: Linux Kernel Mailing List


Greetings!

verified that the patches apply on linux-2.6.0-test6
and work as expected ...

FYI, this patch (hopefully) allows RO --bind mounts
to 'behave' like other ro mounted filesystems, and
I hope that they will be included in the mainline
in the near future ;)

AFAIK, it handles the following cases as expected:

 - open (read/write/trunc), create
 - link, symlink, unlink
 - mknod (reg/block/char/fifo), mkfifo
 - mkdir, rmdir
 - (f)chown, (f)chmod, utimes
 - ioctl (gen/ext2/ext3/reiser)
 - access, truncate

it doesn't handle update_atime() yet (Al Viro is still
busy ;) and it doesn't change current intermezzo code
(but this would be easy to add, because it's almost the
same as the vfs_*()s at least regarding ro --bind mounts)

you can get them at:

http://vserver.13thfloor.at/Experimental/patch-2.4.22-rc2-bme0.03.diff
http://vserver.13thfloor.at/Experimental/patch-2.4.22-rc2-bme0.03.diff.bz2
http://vserver.13thfloor.at/Experimental/patch-2.6.0-test3-bme0.03.diff
http://vserver.13thfloor.at/Experimental/patch-2.6.0-test3-bme0.03.diff.bz2

enjoy,
Herbert


^ permalink raw reply	[flat|nested] 5+ messages in thread
* Bind Mount Extensions (RO --bind mounts)
@ 2003-09-23 15:54 Herbert Poetzl
  0 siblings, 0 replies; 5+ messages in thread
From: Herbert Poetzl @ 2003-09-23 15:54 UTC (permalink / raw)
  To: Linux Kernel Mailing List


Hi All!

just verified that the patches still apply on  
linux-2.6.0-test5-bk9 and linux-2.4.23-pre5  
without any issues ...

FYI, this patch (hopefully) allows RO --bind mounts 
to 'behave' like other ro mounted filesystems ...

AFAIK, it handles the following cases as expected:

 - open (read/write/trunc), create
 - link, symlink, unlink
 - mknod (reg/block/char/fifo), mkfifo
 - mkdir, rmdir
 - (f)chown, (f)chmod, utimes
 - ioctl (gen/ext2/ext3/reiser)
 - access, truncate

it doesn't handle update_atime() yet (Al Viro is still
busy ;) and it doesn't change current intermezzo code 
(but this would be easy to add, because it's almost the 
same as the vfs_*()s at least regarding ro --bind mounts)

you can get them at:

http://vserver.13thfloor.at/Experimental/patch-2.4.22-rc2-bme0.03.diff
http://vserver.13thfloor.at/Experimental/patch-2.4.22-rc2-bme0.03.diff.bz2
http://vserver.13thfloor.at/Experimental/patch-2.6.0-test3-bme0.03.diff
http://vserver.13thfloor.at/Experimental/patch-2.6.0-test3-bme0.03.diff.bz2

enjoy,
Herbert



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-03-09 11:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 10:45 Bind Mount Extensions (RO --bind mounts) Olivier ARCHER
2004-03-09 11:32 ` Sean Neakums
  -- strict thread matches above, loose matches on Subject: below --
2003-09-28 15:55 Herbert Poetzl
     [not found] ` <20030929111941.GG11543@vega.digitel2002.hu>
2003-09-29 16:20   ` Herbert Poetzl
2003-09-23 15:54 Herbert Poetzl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®