lkml.org 
[lkml]   [2003]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: inode generation numbers
On Sep 09, 2003  21:08 +0200, Bernd Schubert wrote:
> for a user space nfs-daemon it would be helpful to get the inode generation
> numbers. However it seems the fstat() from the glibc doesn't support this,
> but refering to some google search fstat() from some (not all) other unixes
> does.
> Does anyone know how to read those numbers from userspace with linux?

For ext2/ext3 filesystems you can use EXT2_GET_VERSION ioctl for this.
Maybe reiserfs as well.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

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

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