[lkml]   [2014]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 00/13] cross rename v4
Linus Torvalds <> wrote:

> So what do others that support this do? Looking at the gitweb for
> ls.c in coreutils, we find:
> # ifdef DT_WHT
> case DT_WHT: type = whiteout; break;
> # endif
> so that's presumably what we should use.

Whilst that does seem reasonable, what about all the other software that
iterates over a directory? Some of that is surely not going to know about

Further, while that may sort whiteouts, what about fallthroughs? There isn't
a DT_ symbol for that... Fallthroughs are 'really there' in the sense that
they're positive, but they should take on the underlying object type - which
in this situation we can't retrieve:-/

I wonder if it would be possible to require filesystems that can store
fallthroughs to store the lower type in the upper dentry (ie. there is no
fallthrough type per se, but rather fallthrough-to-file, f-to-char, f-to-sym,


 \ /
  Last update: 2014-02-13 20:41    [W:0.076 / U:1.804 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site