From: Bernd Schubert <bernd-schubert@web.de>
To: Andreas Dilger <adilger@clusterfs.com>
Cc: linux-kernel@vger.kernel.org, reiserfs-list@namesys.com
Subject: Re: inode generation numbers
Date: Wed, 10 Sep 2003 00:53:22 +0200 [thread overview]
Message-ID: <200309100053.23352.bernd-schubert@web.de> (raw)
In-Reply-To: <20030909140751.E18851@schatzie.adilger.int>
On Tuesday 09 September 2003 22:07, Andreas Dilger wrote:
> 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.
regarding to fs/ext2/ioctl.c it should be EXT2_IOC_GETVERSION, shouldn't it?
> Maybe reiserfs as well.
>
Hello,
thanks a lot, it seems to work pretty well.
Since I have never used the ioctl() call before I only want to be sure I don't
do something wrong, I think this is correct, isn't it?
int ret, igen;
ret = ioctl(fd, EXT2_IOC_GETVERSION, &igen);
It also works for reiserfs-partitions with the very same call, @reiserfs-team,
this won't change in the future, will it?
Cheers,
Bernd
next prev parent reply other threads:[~2003-09-09 22:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-09 19:08 inode generation numbers Bernd Schubert
2003-09-09 20:07 ` Andreas Dilger
2003-09-09 22:53 ` Bernd Schubert [this message]
2003-09-11 7:03 ` Oleg Drokin
2003-09-10 8:18 ` Nikita Danilov
2003-09-10 0:04 ` Andries Brouwer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200309100053.23352.bernd-schubert@web.de \
--to=bernd-schubert@web.de \
--cc=adilger@clusterfs.com \
--cc=linux-kernel@vger.kernel.org \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).