lkml.org 
[lkml]   [1999]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] What should we do with FAT inode numbers?
Colin Plumb wrote:
> This means that zero-length files sort of have no identity. I'm not
> too terribly worried about that.

Unfortunately, this is the one case where constant inode numbers really
do matter. Almost any program that encodes the inode number in the datafile
will do something like:
f=creat(...); // f is now zero-length
fstat(f,&st); // get the inode number
sprintf(buf,"%d\n",st.st_ino);
write(f,buf,strlen(buf)); // oops... inode number just changed..

No, I don't have a solution for this problem.

-Mitch

-
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:49    [W:1.046 / U:2.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site