summaryrefslogtreecommitdiff
path: root/tmpfs/dir.c
AgeCommit message (Collapse)Author
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_lookup_hard): Cast int to intptr_t before ino_t.
2002-06-132002-06-13 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_lookup_hard): int -> ino_t
2002-06-112002-06-08 Roland McGrath <roland@frob.com>Roland McGrath
* node.c (diskfs_cached_lookup): Use ino_t for argument. * node.c (diskfs_alloc_node): Case to uintptr_t before ino_t. (diskfs_cached_lookup): Likewise, and vice versa. * dir.c (diskfs_get_directs, diskfs_lookup_hard): Likewise.
2002-06-02finish reverting unintentional checkin, take 3Roland McGrath
2002-06-01finish reverting unintentional checkinRoland McGrath
2002-05-29revert unintentional checkinRoland McGrath
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_get_directs): u_int -> size_t * tmpfs.c (diskfs_append_args): unsigned -> size_t
2001-04-152001-04-15 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* dir.c (diskfs_get_directs): Total rewrite. (diskfs_lookup_hard): Likewise. (diskfs_enter_hard): Count node size in the size of the dirent so diskfs_get_directs does not have to guess; this is only a few bytes different. Check the amount of space correctly, i.e. we cannot compare bytes and pages. * node.c: (diskfs_free_node): We already hold diskfs_node_refcnt_lock; do not try to lock it again. (diskfs_cached_lookup): Use diskfs_nref, that is why we have it. Link the nodes correctly. (diskfs_set_translator): Add or remove S_IPTRANS from np->dn_stat.st_mode as appropriate. (diskfs_truncate): Set the new np->dn_stat.st_size. (diskfs_grow): Move the assert up.
2001-02-262001-02-26 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_get_directs): When using st_size, calculate additional space for . and .. entries. Skip . and .. entries when ENTRY says to. Set d_fileno=2 for .. entry when it is the parent of the filesystem.
2001-02-262001-02-25 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (diskfs_lookup_hard): Look up .. disknode's in-core node.
2000-12-302000-12-30 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* dir.c: Include <stddef.h>, <unistd.h>, <sys/mman.h> (diskfs_get_directs): Cast *data to struct dirent *. * node.c: Include <stddef.h>. (diskfs_alloc_node): Remove unused variables err, st, np. (diskfs_free_node): Use *np->dn, not *dn to calculate used space. (recompute_blocks): Replace DT_DEV with DT_BLK. (diskfs_node_norefs): Likewise. (recompute_blocks): Take address of np->dn_stat for pointer st. (diskfs_cached_lookup): New variable st. (diskfs_cached_lookup): Set st to &np->dn_stat, not &dn->dn_stat. (create_symlink_hook): Fix malloc call and return code check. (read_symlink_hook): Return 0. * tmpfs.c: Include <argp.h>, <string.h>, <inttypes.h>, <argz.h>, <error.h>. (parse_opt): Reverse second and third argument of strtoimax call. * tmpfs.h (struct disknode): Remove blind passenger (unnamed copy of anonymous struct {} reg). Some of the above were also reported by Alexey Dejneka <adejneka@comail.ru>.
2000-12-27New directory tmpfs, in-core filesystem based on libdiskfsRoland McGrath