aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/dir.c
Commit message (Collapse)AuthorAgeFilesLines
* 1999-07-06 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-111-1/+2
| | | | | | | | | | * dir.c (diskfs_get_directs): Use mmap instead of vm_allocate. * hyper.c (allocate_mod_map): Likewise. (get_hypermetadata): Likewise. * pager.c (get_page_buf): Likewise. * hyper.c (diskfs_readonly_changed): Use mprotect instead of vm_protect.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-13/+12
| | | | | | | | | | | | | | * dir.c (diskfs_lookup_hard): Use munmap instead of vm_deallocate. (diskfs_direnter_hard): Likewise. (diskfs_dirremove_hard): Likewise. (diskfs_dirrewrite_hard): Likewise. (diskfs_dirempty): Likewise. (diskfs_drop_dirstat): Likewise. (diskfs_get_directs): Likewise. * hyper.c (allocate_mod_map): Likewise. (get_hypermetadata): Likewise. * pager.c (free_page_buf): Likewise. * truncate.c (poke_pages): Likewise.
* 1998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-09-041-78/+78
| | | | | | | | | * dir.c (dirscanblock): Fix defn with `const'. (diskfs_direnter_hard): Likewise. * inode.c (diskfs_create_symlink_hook): Likewise. (write_symlink): Likewise. * dir.c (diskfs_lookup_hard): Fix defn with `const'. * inode.c (diskfs_set_translator): Likewise.
* Wed Aug 20 14:28:00 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-08-201-1/+9
| | | | | | | | | | | * dir.c (diskfs_lookup_hard): Cope with error return from diskfs_get_filemap. (diskfs_dirempty): Cope (poorly) with error return from diskfs_get_filemap. * truncate.c (force_delayed_copies): Likewise. * pager.c (diskfs_get_filemap): If pager_create fails, return error to caller.
* (diskfs_lookup_hard):Miles Bader1996-08-301-13/+42
| | | | | | | | | | | | | When setting ds->stat to EXTEND, set ds->idx by looking at the size of the file. After successful dirscanblock, record index where we finished in DP->dn->dir_idx. Start searches at that index. (dirscanblock): Size dirents correctly when mallocing it. (diskfs_direnter_hard): Be more careful when sizing or resizing dirents. Correctly set to -1 all the new entries we create after realloc call. (diskfs_direnter_hard): Initialize OLDSIZE to quiet gcc.
* (diskfs_lookup_hard, diskfs_dirempty):Miles Bader1996-06-251-4/+4
| | | | Use diskfs_check_readonly instead of diskfs_readonly.
* (diskfs_lookup_hard): Set atime appropriately, and sync the new atime if weMiles Bader1996-04-171-15/+36
| | | | | | | | are running synchronously (!). (diskfs_dirempty): Likewise. (diskfs_direnter_hard): Set mtime appropriately. (diskfs_dirremove_hard): Likewise. (diskfs_dirrewrite_hard): Likewise.
* Replace references to the NUMBER field in a node's disknode structures withMiles Bader1996-04-111-16/+16
| | | | | references to the CACHE_ID field in the node. Replace references to iget with diskfs_cached_lookup.
* (diskfs_null_dirstat): New function.Miles Bader1996-03-291-38/+14
| | | | | | | (diskfs_lookup_hard, diskfs_direnter, diskfs_dirremove_hard, diskfs_dirrewrite_hard): Renamed from versions without `_hard' suffix. Get rid of stuff now done by diskfs.
* (diskfs_get_directs): When BUFSIZ is 0, allocate enough extra space over theMiles Bader1996-02-061-4/+39
| | | | | directory size to account for the worst case difference between the ext2 and canonical formats.
* (diskfs_direnter):Miles Bader1996-01-151-4/+4
| | | | Don't include the terminating '\0' in on-disk directory entry names.
* (diskfs_lookup): Patch from ufs/dir.c: If we are returning an error, then setMiles Bader1996-01-151-1/+5
| | | | the dirstat to be ignored by drop_dirstat.
* (dirscanblock): Apply mib's changes to ufs/dir.c.Miles Bader1995-11-211-16/+42
|
* (diskfs_lookup, diskfs_dirempty): Give diskfs_get_filemap a protection arg.Miles Bader1995-10-201-9/+6
|
* (diskfs_lookup): Require NPP set for RENAME too.Miles Bader1995-09-131-1/+1
|
* (diskfs_lookup): Don't attempt to lock NP if NPP is not set. Don'tMiles Bader1995-09-131-7/+11
| | | | | even set NP if NPP is not set; use INUM as "lookup succeeded flag" instead. Lookups for REMOVE now *must* set NPP.
* (diskfs_direnter): Move assignment out of test.Miles Bader1995-06-241-7/+10
| | | | (diskfs_get_directs): Fix print-format types.
* Change uses of the ext2_{warning,error,panic} functions to not have theMiles Bader1995-05-121-6/+3
| | | | initial function name argument (it's now supplied automagically).
* entered into RCSMiles Bader1995-05-081-1/+1
|
* Formerly dir.c.~12~Miles Bader1995-05-071-2/+7
|
* Formerly dir.c.~11~Miles Bader1995-05-041-2/+1
|
* Formerly dir.c.~10~Miles Bader1995-05-031-0/+19
|
* Formerly dir.c.~9~Miles Bader1995-04-201-6/+3
|
* Formerly dir.c.~8~Miles Bader1995-04-191-5/+23
|
* Formerly dir.c.~7~Miles Bader1995-04-191-5/+10
|
* Formerly dir.c.~6~Miles Bader1995-04-161-1/+1
|
* Formerly dir.c.~5~Miles Bader1995-04-151-18/+19
|
* Formerly dir.c.~4~Miles Bader1995-04-121-88/+78
|
* Initial revisionMiles Bader1995-04-121-0/+884