From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: [9fans] p9p qid.vers for directories
Date: Fri, 9 Dec 2005 10:30:48 -0600 [thread overview]
Message-ID: <20051209163048.816F61C8E5A@dexter-peak.quanstro.net> (raw)
there are several places in p9p where the code depends on this
sort of code:
if (!(oldqid.path = newqid.path && qid.vers == newqid.vers))
process_changed_directory();
however on solaris and linux, qid.vers is always zero and qid.path depends
only on the device and inode. so if i cd $dir ; touch newfile this test
oldqid.path = newqid.path && qid.vers == newqid.vers
evaluates to zero.
what i would like to do is modify _p9dir to do something with
qid.vers, at least for directories. it doesn't seem as if there's an easy
way to get at the file version¹ out of the linux kernel, though there
are some patches floating around for linux 2.4. i was thinking that
perhaps using the directory mtime or ctime would be a good start.
any ideas?
- erik
¹ file versions are mantained at least reiserfs /usr/include/linux/reiserfs_fs.h:912
on linux 2.6.14.
next reply other threads:[~2005-12-09 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-09 16:30 erik quanstrom [this message]
2005-12-09 16:30 erik quanstrom
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=20051209163048.816F61C8E5A@dexter-peak.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@cse.psu.edu \
/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).