lkml.org 
[lkml]   [1999]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: archive filesystem interface


On Tue, 20 Apr 1999, Stephane Popinet wrote:

> - What is the most portable and efficient way to get filename(s) from
> inode numbers?
Full scan of filesystem. And it's the only way. Kinda kills the
idea... Besides, you'll have pretty races between such scan and rename().
Raceless way to do it from userland simply doesn't exist. From the
kernel... It will be equally slow and would take mind-boggling amount of
locking to prevent races. In effect you'll have to stop all
namespace-related activity for the duration of that operation. And it will
not be fast - on a big fs it may take tens of seconds for each file.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.028 / U:0.932 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site