Linux Overlay Filesystem development
 help / color / mirror / Atom feed
* Question about overlayfs over fs not support dirent::ftype
@ 2015-12-09  4:42 Linzhe Lee
  2015-12-10  6:58 ` Miklos Szeredi
  0 siblings, 1 reply; 4+ messages in thread
From: Linzhe Lee @ 2015-12-09  4:42 UTC (permalink / raw)
  To: linux-unionfs

Hi,all

I got problem in using overlayfs over fs not support
dirent::ftype[such as xfs(-n ftype=0)]. After some dig I realized in
such situation, function ovl_fill_merge parameter d_type will always
be DT_UNKNOWN.

I think a warning is needed of course. But because dirent::d_type is
not widely supported for now. I thought If we can find a way to
fallback to stat() call in such a situation.  How do you think this
idea?

And, can you suggest a method to do it? I tried these method for now,
but none work.

    1) Direct get struct inode* from inode::i_ino,  Stuck at not found
a proper abstract function to do it.
    2) Get to known fs do not support dirent::d_type and workaround.
Stuck at not found how to know if fs do not support dirent::d_type
    3) In function ctx.actor [ovl_fill_merge], use function
lookup_one_len to get file dirent. Stuck at lock.

Any thought is helpful. Thank you !

lilinzhe

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

end of thread, other threads:[~2015-12-13  4:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-09  4:42 Question about overlayfs over fs not support dirent::ftype Linzhe Lee
2015-12-10  6:58 ` Miklos Szeredi
2015-12-11  3:51   ` Linzhe Lee
2015-12-13  4:51   ` Linzhe Lee

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