linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Union mounts and fchown/fchmod/utimensat
@ 2010-03-26 22:45 Valerie Aurora
  2010-03-27 15:43 ` J. R. Okajima
  0 siblings, 1 reply; 7+ messages in thread
From: Valerie Aurora @ 2010-03-26 22:45 UTC (permalink / raw)
  To: linux-fsdevel
  Cc: Alexander Viro, Erez Zadok, J. R. Okajima, Christoph Hellwig

In the current union mount design, files that will be modified are
copied up from the lower layer file system to the top layer at open()
time.  However, there are three cases in which metadata can be
modified through a file descriptor opened O_RDONLY: fchown(),
fchmod(), and utimensat().  Currently, we only copy up a file before
it is open, never after.  Implementing these system calls would
require replacing the read-only open file descriptor from the lower
file system with a new file descriptor from the topmost layer - in
other words, a huge nasty hack.

My question: How often do applications actually attempt fchown(),
fchmod(), or utimensat() on an O_RDONLY file descriptor?  Would it
break a lot of applications if a union mount file returned EBADF or
EPERM in this case?

-VAL

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

end of thread, other threads:[~2010-03-30 21:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-26 22:45 Union mounts and fchown/fchmod/utimensat Valerie Aurora
2010-03-27 15:43 ` J. R. Okajima
2010-03-29 18:39   ` Valerie Aurora
2010-03-29 23:48     ` Jamie Lokier
2010-03-30 11:16       ` Theodore Tso
2010-03-30 20:30         ` Valerie Aurora
2010-03-30 21:31       ` Valerie Aurora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).