aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/dir.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-07-31 Roland McGrath <roland@frob.com>Roland McGrath2002-08-011-1/+1
| | | | * dir.c (diskfs_direnter_hard): Fix test in last change.
* 2002-06-08 Roland McGrath <roland@frob.com>Roland McGrath2002-06-111-4/+10
| | | | | | | | | * ialloc.c (diskfs_free_node): Use %Ld format for ino_t/off_t values. * pager.c (diskfs_grow, pager_unlock_page): Likewise. * inode.c (read_node): Likewise. * dir.c (diskfs_get_directs): Likewise. * dir.c (diskfs_direnter_hard): Use size_t for OLDSIZE. Fail with EOVERFLOW when it would exceed that width.
* 2002-05-29 Roland McGrath <roland@frob.com>Roland McGrath2002-06-021-7/+7
| | | | | | | | | | | | | * dir.c (dirscanblock): Use %z format. (diskfs_get_directs): Likewise. * ext2fs.c (main): Likewise. * hyper.c (get_hypermetadata): Likewise. * pager.c (pager_unlock_page): Likewise. 2002-05-28 Roland McGrath <roland@frob.com> * ext2fs.c (diskfs_append_args): unsigned -> size_t * dir.c (count_dirents): int -> size_t (diskfs_get_directs): u_int -> size_t
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-4/+1
| | | | | * dir.c (diskfs_dirremove_hard): Remove redundant DP->dn_set_mtime set. Noticed by Marcus Brinkmann.
* doc/Marcus Brinkmann2001-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * hurd.texi (Diskfs Callbacks): Make diskfs_dirstat_size const. ext2fs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * dir.c: Make diskfs_dirstat_size const. isofs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * lookup.c: Make diskfs_dirstat_size const. ufs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * dir.c: Make diskfs_dirstat_size const. libdiskfs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * diskfs.h: Make diskfs_dirstat_size const. libdiskfs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * file-statfs.c: Include <string.h>. ftpfs/ 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * dir.c (ftpfs_dir_create): Fix last change (calloc invocation). 2001-01-07 Marcus Brinkmann <marcus@gnu.org> * copy.c: Include <mach.h>. New macro page_aligned. (copy_write): Cast buf to vm_address_t in call to vm_write. Dereference amount for memcpy. (copy_read): Add len parameter to vm_read, remove redundant following len assignment.
* ext2fs, ufs:Marcus Brinkmann2000-11-301-1/+5
| | | | | | | | | | | | | 2000-11-30 Marcus Brinkmann <marcus@gnu.org> * dir.c (diskfs_lookup_hard): If name is too long, clear DS before returning ENAMETOOLONG. pfinet: 2000-11-02 Marcus Brinkmann <marcus@gnu.org> * tunnel.c (trivfs_S_io_get_owner): Add return type to silence compiler warning.
* 2000-03-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-031-28/+31
| | | | | * dir.c (diskfs_get_directs): Don't allocate buffer for *DATA until after scanning for ENTRY and possibly returning EOF.
* 1999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-031-1/+9
| | | | | | * dir.c (ext2_file_type): #if 0 out this variable. (diskfs_get_directs): #if 0 out code to interpret file_type field and set d_type. Instead, always return DT_UNKNOWN for now.
* 1999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-031-0/+11
| | | | | | * dir.c (file_type_ext2): #if 0 out. (diskfs_direnter_hard): #if 0 out code to set file_type field in directory entries. Instead, always set it to zero.
* 1999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-031-1/+1
| | | | | | | | | | | * hyper.c (get_hypermetadata): Use EXT2_MAX_BLOCK_SIZE instead of hard-wired 8192. Don't use ffs to compute log2_block_size, and don't check for the impossible case of non-power-of-two block size (the block size specification we start with is given as a power of two!). * ext2fs.h (block_size): Change type to unsigned int. (BLOCKSIZE_SCALE): Just use SBLOCK->s_log_block_size directly. * hyper.c (get_hypermetadata): Fix printf formats to silence warning. * dir.c (dirscanblock): Likewise.
* 1999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-031-31/+45
| | | | | | | | | * dir.c (file_type_ext2): New const variable, map DT_* -> EXT2_FT_*. (diskfs_direnter_hard): Move initialization of directory entry content fields out of switch; use memcpy or memmove as appropriate, instead of bcopy. Set file_type field in new directory entry to appropriate type for the node, or to zero if the filesystem doesn't have the EXT2_FEATURE_INCOMPAT_FILETYPE flag set.
* Reverted changes related to io_map_segment.Roland McGrath1999-09-131-2/+2
|
* 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-081-2/+2
| | | | | | | | * dir.c (diskfs_lookup_hard): Pass additional parameter to diskfs_get_filemap. (diskfs_dirempty): Likewise. * truncate.c (force_delayed_copies): Likewise. * pager.c (diskfs_get_filemap): Accept additional parameter.
* 1999-08-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-08-231-22/+54
| | | | | | | | | | | | | | * inode.c (write_node): Get i_flags from NP->dn->info instead of from the disk inode, so we can have modified the in-core version. * dir.c (diskfs_direnter_hard, diskfs_dirremove_hard, diskfs_dirrewrite_hard): Clear EXT2_BTREE_FL flag bit from DP->dn->info.i_flags after modifying the directory (this is what Linux 2.3.14 does). * dir.c: Replace `struct ext2_dir_entry' with `struct ext2_dir_entry_2' in all uses. (ext2_file_type): New static const variable. (diskfs_get_directs): Set d_type member based on file_type field in directory entry.
* 1999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-2/+1
| | | | | | * dir.c (diskfs_get_directs): Fix sloppy bugs in last change. * hyper.c (allocate_mod_map): Likewise. * pager.c (get_page_buf): Likewise.
* 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