summaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
AgeCommit message (Collapse)Author
1999-08-231999-08-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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).
1999-06-16Tue Jun 15 21:51:58 1999 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* 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-271998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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-211998-12-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* inode.c (diskfs_write_disknode): Add braces to silence warning. * pager.c (file_pager_read_page): Likewise.
1998-09-041998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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.
1997-06-03(read_node):Miles Bader
Don't assert that st_blocks is zero for non-dir/file/long-symlink inodes.
1996-11-20(read_node):Miles Bader
If SBLOCK->s_creator_os != EXT2_OS_HURD, set NP->author_tracks_uid to true.
1996-11-19(diskfs_set_translator):Miles Bader
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.
1996-11-12(diskfs_validate_flags_change):Miles Bader
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.
1996-09-23(read_disknode):Miles Bader
Use STORE->log2_block_size instead of LOG2_BLOCK_SIZE.
1996-08-30(diskfs_cached_lookup): Initialize DN->dir_idx.Miles Bader
1996-08-15(read_disknode): Change assertion to allow non-zero st_size for anything, butMiles Bader
assert that st_blocks == 0 for any case where we set allocsize to 0.
1996-08-12(read_disknode): Don't set allocsize for in-inode symlinks.Miles Bader
(MAX_INODE_SYMLINK): New macro. (write_symlink, read_symlink): New functions. (diskfs_create_symlink_hook, diskfs_read_symlink_hook): New variables.
1996-08-02(diskfs_write_disknode):Miles Bader
If WAIT is false, still record the write for later, using record_global_poke.
1996-07-20(diskfs_cached_lookup): Don't initialize debugging info.Miles Bader
1996-07-17(diskfs_cached_lookup): Initialize debugging info.Miles Bader
1996-06-25(diskfs_cached_lookup): Use diskfs_check_readonly instead of diskfs_readonly.Miles Bader
1996-06-24(check_high_bits, diskfs_validate_owner_change,Miles Bader
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.
1996-06-15(read_disknode, write_inode):Miles Bader
Use hurd-specific fields only on a hurd filesystem.
1996-05-10(diskfs_set_statfs): Fix one reference to old name of ST member.Michael I. Bushnell
1996-05-10(diskfs_set_statfs): Expect and fill in new format statfs buffer.Michael I. Bushnell
1996-04-17(diskfs_write_disknode): Only sync DI if WAIT.Miles Bader
1996-04-11(diskfs_cached_lookup):Miles Bader
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.
1996-01-18(read_disknode): Don't set last_block_allocated.Miles Bader
1996-01-15(diskfs_node_norefs): When losing our in-core copy of an inode, rememberMiles Bader
which indirect blocks still have to be written.
1996-01-14(write_node): If NP isn't translated, force DI->i_translator to 0.Miles Bader
1995-10-31(diskfs_get_translator, diskfs_set_translator):Miles Bader
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'.
1995-10-21(diskfs_node_reload): New function.Miles Bader
(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.
1995-10-05(diskfs_set_statfs): fsys_stb_bsize -> fsys_stb_iosize.Miles Bader
fsys_stb_fsize -> fsys_stb_bsize.
1995-06-24(diskfs_lost_hardrefs): Change pager [un]ref calls to use the new ports refMiles Bader
calls directly instead. (diskfs_node_iterate): New function. (write_all_disknodes): Re-implemented using diskfs_node_iterate.
1995-06-14(diskfs_get_translator): Conform to new memory usage semantic.Michael I. Bushnell
1995-05-14(diskfs_set_statfs): Set st->fsys_stb_bsize, not _fsize, to the block size.Miles Bader
1995-05-11(read_disknode): Make st_blksize larger: 2 * pagesize.Miles Bader
1995-05-01Formerly inode.c.~21~Miles Bader
1995-04-29Formerly inode.c.~20~Miles Bader
1995-04-27Formerly inode.c.~19~Miles Bader
1995-04-27Formerly inode.c.~18~Miles Bader
1995-04-25Formerly inode.c.~17~Miles Bader
1995-04-21Formerly inode.c.~16~Miles Bader
1995-04-20Formerly inode.c.~15~Miles Bader
1995-04-19Formerly inode.c.~14~Miles Bader
1995-04-17Formerly inode.c.~12~Miles Bader
1995-04-17Formerly inode.c.~11~Miles Bader
1995-04-16Formerly inode.c.~10~Miles Bader
1995-04-16Formerly inode.c.~9~Miles Bader
1995-04-15Formerly inode.c.~8~Miles Bader
1995-04-12Formerly inode.c.~7~Miles Bader
1995-04-11Formerly inode.c.~6~Miles Bader
1995-04-11Formerly inode.c.~5~Miles Bader
1995-04-11Initial revisionMiles Bader