1 |
/* |
/* |
2 |
Copyright (C) 1997, 1998 Free Software Foundation, Inc. |
Copyright (C) 1997,98,2002 Free Software Foundation, Inc. |
3 |
Written by Thomas Bushnell, n/BSG. |
Written by Thomas Bushnell, n/BSG. |
4 |
|
|
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
100 |
} |
} |
101 |
if ((rr->valid & VALID_MD) && (rr->allmode & S_IFDIR)) |
if ((rr->valid & VALID_MD) && (rr->allmode & S_IFDIR)) |
102 |
return 0; |
return 0; |
103 |
|
|
104 |
/* If it is a symlink or a zero length file, don't use file_start. */ |
/* If it is a symlink or a zero length file, don't use file_start. */ |
105 |
if (rr->valid & VALID_SL || isonum_733 (record->size) == 0) |
if (rr->valid & VALID_SL || isonum_733 (record->size) == 0) |
106 |
return 0; |
return 0; |
163 |
/* Fetch inode with cache id ID; set *NPP to the node structure; |
/* Fetch inode with cache id ID; set *NPP to the node structure; |
164 |
gain one user reference and lock the node. */ |
gain one user reference and lock the node. */ |
165 |
error_t |
error_t |
166 |
diskfs_cached_lookup (int id, struct node **npp) |
diskfs_cached_lookup (ino_t id, struct node **npp) |
167 |
{ |
{ |
168 |
struct node *np; |
struct node *np; |
169 |
error_t err; |
error_t err; |