aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
Commit message (Collapse)AuthorAgeFilesLines
* 2002-01-03 Roland McGrath <roland@frob.com>Roland McGrath2002-01-041-4/+1
| | | | | * inode.c (write_node): Never clear i_translator here. That is only done by diskfs_set_translator.
* 2001-11-21 Roland McGrath <roland@frob.com>Roland McGrath2001-11-211-8/+1
| | | | * inode.c (read_node): Just always call getpid for the fsid value.
* 2001-08-16 Roland McGrath <roland@frob.com>Roland McGrath2001-08-171-8/+14
| | | | | * inode.c (write_node): Leave i_size, i_blocks, i_translator unchanged when the inode has been deleted. Suggested by Marcus Brinkmann.
* 2001-08-09 Roland McGrath <roland@frob.com>Roland McGrath2001-08-101-1/+1
| | | | | | * inode.c (diskfs_get_translator): Fail with EFTYPE if the length field stored on disk is unreasonable. Don't crash on ENOMEM. Use memcpy instead of bcopy.
* 2001-08-09 Roland McGrath <roland@frob.com>Roland McGrath2001-08-101-5/+11
| | | | | | * inode.c (diskfs_get_translator): Fail with EFTYPE if the length field stored on disk is unreasonable. Don't crash on ENOMEM. Use memcpy instead of bcopy.
* * inode.c (diskfs_set_statfs): If number of free blocks is lessMark Kettenis2001-06-091-1/+3
| | | | | than the number of reserved blocks, set the number of available blocks to 0.
* 2000-12-21 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-01-071-2/+4
| | | | | | | | | | * pager.c: Include <errno.h>. (create_disk_pager): Panic if malloc fails. Reported by Igor Khavkine <i_khavki@alcor.concordia.ca>. * inode.c (diskfs_get_translator): If malloc fails, set err to ENOMEM. Initialize err with 0, and return it at the end of the function. Reported by Igor Khavkine <i_khavki@alcor.concordia.ca>.
* 2000-12-02 Roland McGrath <roland@frob.com>Roland McGrath2000-12-031-3/+2
| | | | | | | | * inode.c (write_all_disknodes): Call diskfs_set_node_times after pokel_sync, since it might delay a little. (write_node): Remove assert that dn_set_mtime et al are clear. It is ok if they are set in parallel, because the latter setting will be carried out eventually.
* 2000-10-01 Roland McGrath <roland@frob.com>Roland McGrath2000-10-021-6/+3
| | | | * inode.c (write_node): Use memcpy instead of a loop.
* 2000-02-05 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-02-051-2/+11
| | | | | | | * ext2_fs.h: Update from Linux 2.3.42 version (ext2_fs_i.h unchanged). * inode.c (check_high_bits): In accordance with Linux 2.3.42 behavior, permit 32-bit uids on non-hurd filesystems unless i_dtime is zero (which indicates an extra old Linux ext2 implementation I guess).
* 1999-08-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-08-231-16/+31
| | | | | | | | | | | | | | | | | | | | | | | | | * inode.c (read_node): Don't set INFO->i_version. Extract INFO->i_dir_acl value only for a directory; otherwise use zero and instead extract INFO->i_high_size. Fail with EFBIG if INFO->i_high_size is nonzero. * 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). * inode.c (read_node): i_version -> i_generation * inode.c (write_node): Likewise. * balloc.c (ext2_new_block): Take new arg PREALLOC_GOAL. Use that instead of hard-coded 8 as maximum of blocks to preallocate. Also test that instead of PREALLOC_COUNT to decide whether to try any preallocation at all. * getblk.c (ext2_alloc_block): Pass new arg to ext2_new_block. Use EXT2_DEFAULT_PREALLOC_BLOCKS as default (replaces hard-coded 8); For a regular file, use SBLOCK->s_prealloc_blocks before default. For a directory, use SBLOCK->s_dir_prealloc_blocks if the EXT2_FEATURE_COMPAT_DIR_PREALLOC flag is set, otherwise zero. * inode.c (diskfs_set_translator): Pass new arg (zero).
* Tue Jun 15 21:51:58 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-06-161-4/+4
| | | | | | | | | | | | * pager.c: Clamp the number of free pages we keep around to some reasonably small value. Patch from Mark Kettenis <kettenis@wins.uva.nl>. 1999-06-15 Thomas Bushnell, BSG <tb@mit.edu> * inode.c (diskfs_validate_flags_change): Invert sense of test wrt bits that haven't yet been defined. Reported by Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-0/+4
| | | | | | | | * inode.c (diskfs_set_statfs): Remove __ from struct members. 1998-12-21 Mark Kettenis <kettenis@phys.uva.nl> * inode.c (diskfs_set_statfs): Fill in statfs members that are used to implement statvfs.
* 1998-12-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-211-4/+6
| | | | | * inode.c (diskfs_write_disknode): Add braces to silence warning. * pager.c (file_pager_read_page): Likewise.
* 1998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-09-041-25/+25
| | | | | | | | | * 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.
* (read_node):Miles Bader1997-06-031-5/+2
| | | | Don't assert that st_blocks is zero for non-dir/file/long-symlink inodes.
* (read_node):Miles Bader1996-11-201-2/+3
| | | | If SBLOCK->s_creator_os != EXT2_OS_HURD, set NP->author_tracks_uid to true.
* (diskfs_set_translator):Miles Bader1996-11-191-8/+11
| | | | | | | | | Frob S_IPTRANS bit rather than istranslated field. (write_node): Don't write S_IPTRANS to disk. (read_node): Set S_IPTRANS bit in ST->st_mode (and clear S_ITRANS) rather than NP->istranslated.
* (diskfs_validate_flags_change):Miles Bader1996-11-121-7/+48
| | | | | | | | | | | | | | | New function. (write_node): Convert generic flags in ST->st_flags to ext2- specific flags in DI->i_flags. (read_node): Renamed from read_disknode; all callers changed. Convert ext2-specific flags on disk to generic flags in ST. [!UF_APPEND] (UF_APPEND): New macro (temporary). [!UF_NODUMP] (UF_NODUMP): New macro (temporary). [!UF_IMMUTABLE] (UF_IMMUTABLE): New macro (temporary). <sys/stat.h>: New include.
* (read_disknode):Miles Bader1996-09-231-1/+1
| | | | Use STORE->log2_block_size instead of LOG2_BLOCK_SIZE.
* (diskfs_cached_lookup): Initialize DN->dir_idx.Miles Bader1996-08-301-0/+1
|
* (read_disknode): Change assertion to allow non-zero st_size for anything, butMiles Bader1996-08-151-2/+5
| | | | assert that st_blocks == 0 for any case where we set allocsize to 0.
* (read_disknode): Don't set allocsize for in-inode symlinks.Miles Bader1996-08-121-9/+73
| | | | | | (MAX_INODE_SYMLINK): New macro. (write_symlink, read_symlink): New functions. (diskfs_create_symlink_hook, diskfs_read_symlink_hook): New variables.
* (diskfs_write_disknode):Miles Bader1996-08-021-2/+5
| | | | If WAIT is false, still record the write for later, using record_global_poke.
* (diskfs_cached_lookup): Don't initialize debugging info.Miles Bader1996-07-201-4/+0
|
* (diskfs_cached_lookup): Initialize debugging info.Miles Bader1996-07-171-0/+4
|
* (diskfs_cached_lookup): Use diskfs_check_readonly instead of diskfs_readonly.Miles Bader1996-06-251-1/+1
|
* (check_high_bits, diskfs_validate_owner_change,Miles Bader1996-06-241-4/+59
| | | | | | | diskfs_validate_group_change, diskfs_validate_mode_change, diskfs_validate_author_change): New functions. (write_node): For non-hurd filesystems, assert that no hurd extensions should be used.
* (read_disknode, write_inode):Miles Bader1996-06-151-13/+30
| | | | Use hurd-specific fields only on a hurd filesystem.
* (diskfs_set_statfs): Fix one reference to old name of ST member.Michael I. Bushnell1996-05-101-1/+1
|
* (diskfs_set_statfs): Expect and fill in new format statfs buffer.Michael I. Bushnell1996-05-101-10/+10
|
* (diskfs_write_disknode): Only sync DI if WAIT.Miles Bader1996-04-171-2/+2
|
* (diskfs_cached_lookup):Miles Bader1996-04-111-15/+25
| | | | | | | Renamed from iget; all uses updated. Initialize the CACHE_ID field in the new node. Replace references to the NUMBER field in a node's disknode structures with references to the CACHE_ID field in the node.
* (read_disknode): Don't set last_block_allocated.Miles Bader1996-01-181-1/+0
|
* (diskfs_node_norefs): When losing our in-core copy of an inode, rememberMiles Bader1996-01-151-0/+4
| | | | which indirect blocks still have to be written.
* (write_node): If NP isn't translated, force DI->i_translator to 0.Miles Bader1996-01-141-0/+2
|
* (diskfs_get_translator, diskfs_set_translator):Miles Bader1995-10-311-2/+6
| | | | | | Only support these if the filesystem's creator-os is `hurd'. (read_disknode): Only check the i_translator field if the filesystem's creator-os is `hurd'.
* (diskfs_node_reload): New function.Miles Bader1995-10-211-61/+40
| | | | | | | | | | (iget, read_disknode): Code to set allocsize and the last_* fields moved from iget to read_disknode. (read_disknode): Add DN and OFFSET variables. Use log2_block_size to mask instead of doing a modulo with block_size. (diskfs_node_norefs, iget): Use pager field, not fileinfo. (iget): Use DISK_PAGER directly, not ->p. (diskfs_lost_hardrefs): #ifdef'd out contents removed.
* (diskfs_set_statfs): fsys_stb_bsize -> fsys_stb_iosize.Miles Bader1995-10-051-2/+2
| | | | fsys_stb_fsize -> fsys_stb_bsize.
* (diskfs_lost_hardrefs): Change pager [un]ref calls to use the new ports refMiles Bader1995-06-241-16/+37
| | | | | | calls directly instead. (diskfs_node_iterate): New function. (write_all_disknodes): Re-implemented using diskfs_node_iterate.
* (diskfs_get_translator): Conform to new memory usage semantic.Michael I. Bushnell1995-06-141-2/+1
|
* (diskfs_set_statfs): Set st->fsys_stb_bsize, not _fsize, to the block size.Miles Bader1995-05-141-2/+2
|
* (read_disknode): Make st_blksize larger: 2 * pagesize.Miles Bader1995-05-111-1/+1
|
* Formerly inode.c.~21~Miles Bader1995-05-011-10/+31
|
* Formerly inode.c.~20~Miles Bader1995-04-291-28/+53
|
* Formerly inode.c.~19~Miles Bader1995-04-271-0/+6
|
* Formerly inode.c.~18~Miles Bader1995-04-271-2/+3
|
* Formerly inode.c.~17~Miles Bader1995-04-251-4/+9
|
* Formerly inode.c.~16~Miles Bader1995-04-211-0/+2
|
* Formerly inode.c.~15~Miles Bader1995-04-201-37/+34
|