diff options
author | Russ Cox <russcox@gmail.com> | 2009-09-24 21:21:27 -0400 |
---|---|---|
committer | Russ Cox <russcox@gmail.com> | 2009-09-24 21:21:27 -0400 |
commit | 1961ee822320bdc107e55f10b2db1bfe8f70d382 (patch) | |
tree | 505752eb6865c52c4fb346e9aca4e0c6636eb603 /src/lib9 | |
parent | cfa81d56c6727c3adcaa160c202c914696097c58 (diff) | |
download | plan9port-1961ee822320bdc107e55f10b2db1bfe8f70d382.tar.gz plan9port-1961ee822320bdc107e55f10b2db1bfe8f70d382.tar.bz2 plan9port-1961ee822320bdc107e55f10b2db1bfe8f70d382.zip |
lib9: do not include st_dev in qid.path
http://codereview.appspot.com/123050
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/_p9dir.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c index afda0c52..1fc5b049 100644 --- a/src/lib9/_p9dir.c +++ b/src/lib9/_p9dir.c @@ -189,7 +189,14 @@ _p9dir(struct stat *lst, struct stat *st, char *name, Dir *d, char **str, char * d->type = 'M'; d->muid = ""; - d->qid.path = ((uvlong)st->st_dev<<32) | st->st_ino; + d->qid.path = st->st_ino; + /* + * do not include st->st_dev in path, because + * automounters give the same file system different + * st_dev values for successive mounts, causing + * spurious write warnings in acme and sam. + d->qid.path |= (uvlong)st->st_dev<<32; + */ #ifdef _HAVESTGEN d->qid.vers = st->st_gen; #endif |