Re: Finding hardlinks

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nikita Danilov <nikita@...>
Cc: Arjan van de Ven <arjan@...>, Benny Halevy <bhalevy@...>, Jan Harkes <jaharkes@...>, Miklos Szeredi <miklos@...>, <linux-kernel@...>, <linux-fsdevel@...>, <nfsv4@...>
Date: Monday, January 1, 2007 - 7:22 pm

> > BTW. How does ReiserFS find that a given inode number (or object ID in

Inode free space can have at most 2^31 extents --- if inode numbers 
alternate between "allocated", "free". How do you pack it to superblock?


So you are going to hit the same problem as I did with SpadFS --- you 
can't export 64-bit inode number to userspace (programs without 
-D_FILE_OFFSET_BITS=64 will have stat() randomly failing with EOVERFLOW 
then) and if you export only 32-bit number, it will eventually wrap-around 
and colliding st_ino will cause data corruption with many userspace 
programs.

Mikulas
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Finding hardlinks, Mikulas Patocka, (Mon Jan 1, 6:58 pm)
Re: Finding hardlinks, Nikita Danilov, (Mon Jan 1, 7:05 pm)
Re: Finding hardlinks, Mikulas Patocka, (Mon Jan 1, 7:22 pm)
Re: Finding hardlinks, Nikita Danilov, (Thu Jan 4, 9:59 am)