All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about ESTALE error whene deleting upper directory file.
@ 2022-11-07  4:29 YoungJun.Park
  2022-11-07  6:40 ` Amir Goldstein
  0 siblings, 1 reply; 10+ messages in thread
From: YoungJun.Park @ 2022-11-07  4:29 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: linux-unionfs

Here is my curious scenario.

1. create a file on overlayfs.
2. delete a file on upper directory.
3. can see file contents using read sys call. (may file operations all success)
4. cannot remove, rename. it return -ESTALE error (may inode operations fail)

I understand this scenario onto the code level.
But I don't understand this situation itself.

I found a overlay kernel docs and it comments 
Changes to underlying filesystems section

...
Changes to the underlying filesystems while part of a mounted overlay filesystem are not allowed. 
If the underlying filesystem is changed, the behavior of the overlay is undefined, 
though it will not result in a crash or deadlock.
....

So here is my question (may it is suggestion)

1. underlying file system change is not allowed, then how about implementing shadow upper directory from user? 
2. if read, write system call is allowed, how about changing remove, rename(and more I does not percept) operation success?

Best Regards.

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

end of thread, other threads:[~2022-11-09  9:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-07  4:29 Question about ESTALE error whene deleting upper directory file YoungJun.Park
2022-11-07  6:40 ` Amir Goldstein
2022-11-07  7:06   ` YoungJun.Park
2022-11-07  8:49     ` Amir Goldstein
2022-11-08  8:14       ` YoungJun.Park
     [not found]         ` <CAOQ4uxi2aGUOCrPb55Q9LGVbqz4M9ZKOhNLnm8kKnsDQgdxYHQ@mail.gmail.com>
2022-11-08 12:37           ` YoungJun.Park
2022-11-08 19:22             ` Amir Goldstein
2022-11-09  4:16               ` YoungJun.Park
2022-11-09  9:16                 ` Amir Goldstein
2022-11-09  9:34                   ` YoungJun.Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.