The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Herbert Poetzl <herbert@13thfloor.at>
To: Andrew Morton <akpm@osdl.org>,
	Marcelo Tosatti <marcelo.tosatti@cyclades.com>,
	Linus Torvalds <torvalds@osdl.org>
Cc: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>,
	linux-kernel@vger.kernel.org
Subject: [PATCH] Bind Mount Extensions 0.04
Date: Mon, 15 Mar 2004 04:53:51 +0100	[thread overview]
Message-ID: <20040315035350.GA30948@MAIL.13thfloor.at> (raw)


Greetings!

The following patch extends the 'noatime', 'nodiratime' and 
last but not least the 'ro' (read only) mount option to the 
vfs --bind mounts, allowing them to behave like any other 
mount, by honoring those mount flags (which are silently 
ignored by the current implementation)

an older version of this patch was included in 2.6.0-test6-mm2, 
and it is currently used by several people, without any issues, 
so I'd kindly request to consider it for inclusion into mainline.

if the size of the patch is an issue, I can break it down into
three parts, one preparing the existing structures, one adding
noatime/nodiratime and one doing the read only stuff.


the patch makes the following syscalls behave like expected

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


the following cases where verified for --bind ro (test tool) 
and showed no difference to a 'real' ro mounted filesystem:

 - open()
 - O_RDONLY: 	file, dir, symlink, broken, cdev, bdev, fifo, new
 - O_WRONLY: 	file, dir, symlink, broken, cdev, bdev, fifo, new
 - O_RDWR: 	file, dir, symlink, broken, cdev, bdev, fifo, new
 - O_CREAT: 	file
 
 - mkdir()  	dir, new, invalid
 - mkfifo() 	fifo, new, invalid

 - mknod()  	
 - S_IFREG: 	file, new, invalid
 - S_IFCHR: 	cdev, new, invalid
 - S_IFBLK: 	bdev, new, invalid
 - S_IFIFO: 	fifo, new, invalid
 
 - chown()  	file, invalid		 - fchown()	file
 - chmod()	file, invalid		 - fchmod()	file

 - link()   	file/file, file/invalid, invalid/file
 - symlink()	file/file, file/invalid, invalid/file
 
 - rename() 	file/file, file/invalid, invalid/file
 - rmdir()  	dir, new, invalid
 - truncate()	file, new invalid   	 - ftruncate()	file
 
 - unlink() 	file, bdev, cdev, fifo, new, invalid


you can download them here, if you prefer that over 
extracting them from emails ...

  http://www.13thfloor.at/patches/

TIA,
Herbert



             reply	other threads:[~2004-03-15  3:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-15  3:53 Herbert Poetzl [this message]
     [not found] ` <20040315045952.GD14537@alpha.home.local>
2004-03-15  5:36   ` [PATCH] Bind Mount Extensions 0.04 Herbert Poetzl
2004-03-15 22:04     ` Willy Tarreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040315035350.GA30948@MAIL.13thfloor.at \
    --to=herbert@13thfloor.at \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    --cc=torvalds@osdl.org \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox