public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* Question about overlayfs ovl_link
@ 2012-02-28  3:57 Robin Dong
  2012-02-28  8:41 ` Miklos Szeredi
  0 siblings, 1 reply; 5+ messages in thread
From: Robin Dong @ 2012-02-28  3:57 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: linux-fsdevel

Hi, Miklos

We are testing and evaluating overlayfs on our machines now. It is
stable but we feel unsure about the ovl_link.

Imaging using ext4 as upperdir which has a file "hello" and lowdir is
totally empty.

1. mount -t overlayfs overlayfs -o lowerdir=/lower,upperdir=/upper /overlay
2. cd /overlay
3. ln hello bye

then the overlayfs code will call vfs_link to create a real ext4
dentry for "bye" and create
a new overlayfs dentry point to overlayfs inode (which standed for
"hello"). That means: two
overlayfs dentries and only one overlayfs inode.

now we continue

4. umount /overlay
5. mount -t overlayfs overlayfs -o lowerdir=/lower,upperdir=/upper
/overlay (again)
6. cd /overlay
7. ls hello bye

then the overlayfs will create two inodes(one for the "hello", another
for the "bye") and two
dentries (each point a inode).That means: two dentries and two inodes.

As above, with different order of "create link" and "mount", the
result is not the same.

My question is: Why not create a new overlayfs inode for "bye" and a
new overrlayfs dentry to point it when user do "ln hello bye" ?


Thanks

-- 
--
Best Regard
Robin Dong

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

end of thread, other threads:[~2012-03-01 19:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-28  3:57 Question about overlayfs ovl_link Robin Dong
2012-02-28  8:41 ` Miklos Szeredi
2012-02-29  3:47   ` Robin Dong
2012-02-29  5:09     ` J. R. Okajima
2012-03-01 19:51     ` Miklos Szeredi

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