aboutsummaryrefslogtreecommitdiff
path: root/ext2fs
Commit message (Collapse)AuthorAgeFilesLines
* Fix extern inline useSamuel Thibault2012-03-253-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext2fs/Makefile (SRCS): Add xinl.c * libtreefs/Makefile (OTHERSRCS): Likewise. * term/Makefile (SRCS): Likewise. * ufs/Makefile (SRCS): Likewise. * hostmux/hostmux-xinl.c: Define HOSTMUX_DEFINE_EI instead of HOSTMUX_EI. * libdiskfs/extern-inline.c: Define DISKFS_DEFINE_EXTERN_INLINE instead of DISKFS_EXTERN_INLINE. * libftpconn/xinl.c: Define FTP_CONN_DEFINE_EI instead of FTP_CONN_EI. * libpipe/pipe-funcs.c: Define PIPE_DEFINE_EI instead of PIPE_EI. * libpipe/pq-funcs.c: Define PQ_DEFINE_EI instead of PQ_EI. * libshouldbeinlibc/idvec-funcs.c: Define IDVEC_DEFINE_EI instead of IDVEC_EI. * libshouldbeinlibc/maptime-funcs.c: Define MAPTIME_DEFINE_EI instead of MAPTIME_EI. * libshouldbeinlibc/ugids-xinl.c: Define UGIDS_DEFINE_EI instead of UGIDS_EI. * libstore/xinl.c: Define STORE_DEFINE_EI instead of STORE_EI. * libthreads/rwlock.c: Define RWLOCK_DEFINE_EI instead of RWLOCK_EI. * ext2fs/xinl.c: New file, define EXT2FS_DEFINE_EI and include "ext2fs.h" * libtreefs/xinl.c: New file, define TREEFS_DEFINE_EI and include "treefs.h" and "mig-decls.h". * term/xinl.c: New file, define TERM_DEFINE_EI and include "term.h". * ufs/xinl.c: New file, define UFS_DEFINE_EI and include "ufs.h" * ext2fs/ext2fs.h: Include <features.h>, define EXT2FS_EI to __extern_inline instead of "extern inline", define it to empty when EXT2FS_DEFINE_EI is defined. Always declare extern inline prototypes, and define extern inlines content only if __USE_EXTERN_INLINES or EXT2FS_DEFINE_EI is defined. * libdiskfs/diskfs.h: Likewise with DISKFS_EXTERN_INLINE and DISKFS_DEFINE_EXTERN_INLINE. * libftpconn/ftpconn.h: Likewise with FTP_CONN_EI and FTP_CONN_DEFINE_EI. * libftpconn/priv.h: Likewise. * libpipe/pipe.h: Likewise with PIPE_EI and PIPE_DEFINE_EI. * libpipe/pq.h: Likewise with PQ_EI and PQ_DEFINE_EI. * libshouldbeinlibc/idvec.h: Likewise with IDVEC_EI and IDVEC_DEFINE_EI. * libshouldbeinlibc/maptime.h: Likewise with MAPTIME_EI and MAPTIME_DEFINE_EI. * libshouldbeinlibc/ugids.h: Likewise with UGIDS_EI and UGIDS_DEFINE_EI. * libstore/store.h: Likewise with STORE_EI and STORE_DEFINE_EI. * libthreads/rwlock.h: Likewise with RWLOCK_EI and RWLOCK_DEFINE_EI. * term/term.h: Likewise with TERM_EI and TERM_DEFINE_EI. * ufs/ufs.h: Likewise with UFS_EI and UFS_DEFINE_EI. * libtreefs/treefs.h: Include <features.h>, define TREE_FS_EI to __extern_inline, or to empty when TREEFS_DEFINE_EI is defined. Use TREEFS_EI instead of "extern inline". * libtreefs/mig-decls.h: Use TREEFS_EI instead of "extern inline".
* Do not inherit all ext2fs flagsSamuel Thibault2011-12-282-3/+25
| | | | | | | | * ext2fs/ext2_fs.h (EXT2_FL_INHERITED, EXT2_REG_FLMASK, EXT2_OTHER_FLMASK): New macros. (ext2_mask_flags): New inline function. * ext2fs/ialloc.c (diskfs_alloc_node): Use EXT2_FL_INHERITED and call ext2_mask_flags.
* Sync pager before clearing MAY_CACHE flagSergio López2011-10-031-1/+4
| | | | | | | | | | | | | | | Clearing MAY_CACHE flag on a pager initiates a memory object termination if this one is not referenced anymore. If the object has a significant number of dirty pages (i.e. a file recently created was unlinked before diskfs periodical sync) this operation generates a lot of stress on the translator. This is one of the most common sources for thread storms. Sync'ing the pager before clearing that flag ensures that there aren't dirty pages in the object before its termination. * ext2fs/pager.c (drop_pager_softrefs): Sync pager before clearing MAY_CACHE flag.
* fix common misspellingsJonathan Neuschäfer2011-08-203-3/+3
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* Fix ext2fs mount with sparse storeSamuel Thibault2010-02-071-11/+8
| | | | | | | 2010-02-06 Carl Fredrik Hammar <hammy.lite@gmail.com> * ext2fs/storeinfo.c (diskfs_S_file_get_storage_info): Return EOPNOTSUPP instead of store if file contains holes.
* Switch to the new ChangeLog style.Thomas Schwinge2009-07-111-1368/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ChangeLog: Wipe out content, and add instructions about how to get it back. * auth/ChangeLog: Remove file. * benchmarks/ChangeLog: Likewise. * boot/ChangeLog: Likewise. * bsdfsck/ChangeLog: Likewise. * config/ChangeLog: Likewise. * console-client/ChangeLog: Likewise. * console/ChangeLog: Likewise. * daemons/ChangeLog: Likewise. * defpager/ChangeLog: Likewise. * doc/ChangeLog: Likewise. * exec/ChangeLog: Likewise. * ext2fs/ChangeLog: Likewise. * fatfs/ChangeLog: Likewise. * fstests/ChangeLog: Likewise. * ftpfs/ChangeLog: Likewise. * hostmux/ChangeLog: Likewise. * hurd/ChangeLog: Likewise. * include/ChangeLog: Likewise. * init/ChangeLog: Likewise. * isofs/ChangeLog: Likewise. * libcons/ChangeLog: Likewise. * libdirmgt/ChangeLog: Likewise. * libdiskfs/ChangeLog: Likewise. * libfshelp/ChangeLog: Likewise. * libftpconn/ChangeLog: Likewise. * libhurdbugaddr/ChangeLog: Likewise. * libihash/ChangeLog: Likewise. * libiohelp/ChangeLog: Likewise. * libnetfs/ChangeLog: Likewise. * libpager/ChangeLog: Likewise. * libpipe/ChangeLog: Likewise. * libports/ChangeLog: Likewise. * libps/ChangeLog: Likewise. * libshouldbeinlibc/ChangeLog: Likewise. * libstore/ChangeLog: Likewise. * libthreads/ChangeLog: Likewise. * libtrivfs/ChangeLog: Likewise. * login/ChangeLog: Likewise. * mach-defpager/ChangeLog: Likewise. * nfs/ChangeLog: Likewise. * nfsd/ChangeLog: Likewise. * pfinet/ChangeLog: Likewise. * pflocal/ChangeLog: Likewise. * proc/ChangeLog: Likewise. * release/ChangeLog: Likewise. * serverboot/ChangeLog: Likewise. * storeio/ChangeLog: Likewise. * sutils/ChangeLog: Likewise. * term/ChangeLog: Likewise. * tmpfs/ChangeLog: Likewise. * trans/ChangeLog: Likewise. * ufs-fsck/ChangeLog: Likewise. * ufs-utils/ChangeLog: Likewise. * ufs/ChangeLog: Likewise. * usermux/ChangeLog: Likewise. * utils/ChangeLog: Likewise.
* 2003-08-10 Peter Bruin <pjbruin@dds.nl>Samuel Thibault2008-07-282-2/+6
| | | | * ext2_fs.h (i_frag, i_fsize): Drop spurious `;'.
* Improve last entry.Thomas Schwinge2007-12-111-2/+3
|
* 2007-12-11 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2007-12-112-16/+36
| | | | | * inode.c (read_node, write_node): Suggest what needs to be done in the future w.r.t. ``struct stat'' changes.
* Update copyright years.Thomas Schwinge2007-10-051-1/+3
|
* [doc/ChangeLog]Samuel Thibault2007-08-202-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * hurd.texi: Document diskfs_set_node_atime. [ext2fs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. [fatfs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. [libdiskfs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * diskfs.h (diskfs_set_node_atime): New declaration. * node-times.c (diskfs_set_node_atime): New function. [ufs/ChangeLog] 2007-08-16 Samuel Thibault <samuel.thibault@ens-lyon.org> * dir.c (diskfs_lookup_hard, diskfs_dirempty): Call diskfs_set_node_atime instead of setting dp->dn_set_atime. * inode.c (read_symlink_hook): Likewise.
* ext2fs/Marcus Brinkmann2005-07-122-1/+5
| | | | | | | fatfs/ 2005-07-12 Marcus Brinkmann <marcus@gnu.org> * pager.c (diskfs_get_filemap): Initialize upi->max_prot to PROT.
* 2004-11-08 Ognyan Kulev <ogi@fmi.uni-sofia.bg>Marcus Brinkmann2004-11-082-2/+10
| | | | | | * storeinfo.c (diskfs_S_file_get_storage_info): Cast -1 to store_offset_t in conditional operator, instead of implicitly cast to uint32_t.
* .Roland McGrath2004-01-101-0/+6
|
* 2004-01-10 Roberto Reale <rreale@iol.it>Roland McGrath2004-01-103-9/+8
| | | | | | * ext2fs.h (ext2_getblk): Fix typo in comment. * getblk.c (ext2_getblk): Likewise. * dir.c (diskfs_get_directs): Likewise.
* .Roland McGrath2002-10-081-0/+7
|
* 2002-10-08 Roland McGrath <roland@frob.com>Roland McGrath2002-10-083-1/+10
| | | | | | | * ext2fs.h (struct disknode): New member `info_i_translator'. * inode.c (diskfs_set_translator): Update NP->dn->info_i_translator. * ialloc.c (diskfs_alloc_node): Clear a nonzero translator block in the on-disk inode just as we do for data blocks.
* .Roland McGrath2002-08-011-0/+4
|
* 2002-07-31 Roland McGrath <roland@frob.com>Roland McGrath2002-08-011-1/+1
| | | | * dir.c (diskfs_direnter_hard): Fix test in last change.
* .Roland McGrath2002-06-111-0/+12
|
* 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-06-08 Roland McGrath <roland@frob.com>Roland McGrath2002-06-112-5/+5
| | | | | | | * 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.
* 2002-06-08 Roland McGrath <roland@frob.com>Roland McGrath2002-06-111-2/+2
| | | | | | | | * inode.c (diskfs_cached_lookup): Use ino_t for argument. * 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.
* 2002-04-05 Neal H Walfield <neal@cs.uml.edu>Marcus Brinkmann2002-06-052-1/+5
| | | | * pager.c (diskfs_grow): Correctly recalculate NEW_SIZE.
* .Roland McGrath2002-06-021-0/+14
|
* 2002-05-29 Roland McGrath <roland@frob.com>Roland McGrath2002-06-022-4/+4
| | | | | | | | * 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-29 Roland McGrath <roland@frob.com>Roland McGrath2002-06-022-10/+10
| | | | | | | | | | | | | * 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
* bogon repairRoland McGrath2002-05-121-2/+2
|
* 2001-11-20 Neal H Walfield <neal@cs.uml.edu>Marcus Brinkmann2002-05-112-5/+13
| | | | | | | | (diskfs_synchronous): Removing superfuous zero initializer. (store): Likewise. (store_parsed): Likewise. (diskfs_disk_name): Likewise. (ext2_debug_flag): Likewise.
* *** empty log message ***Neal H. Walfield2002-04-011-0/+4
|
* 2002-04-01 Neal H Walfield <neal@cs.uml.edu>Neal H. Walfield2002-04-011-1/+1
| | | | * pager.c (diskfs_grow): Fix inverted logic.
* *** empty log message ***Neal H. Walfield2002-03-261-0/+16
|
* 2001-11-20 Neal H Walfield <neal@cs.uml.edu>Neal H. Walfield2002-03-261-34/+31
| | | | | | | | | | | | | | | | * pager.c (MAX_FREE_PAGE_BUFS): Remove obsolete macro. (FREE_PAGE_BUFS): New macro. (free_page_bufs_lock): Make this global variable local to get_page_buf. (free_page_bufs): Likewise. (num_free_page_bufs): Likewise. (get_page_buf): Reimplement using a new caching algorithm based on preallocation of COW zero pages. (free_page_buf): Likewise. (find_block): Documentation fixes.
* .Roland McGrath2002-03-141-0/+5
|
* 2002-03-11 Roland McGrath <roland@frob.com>Roland McGrath2002-03-141-1/+3
| | | | | * Makefile (ext2fs.static): Depend on $(boot-store-types:%=../libstore/libstore_%.a).
* .Roland McGrath2002-01-041-0/+5
|
* 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.
* Remove file supposedly deleted in 1995.Roland McGrath2001-12-221-51/+0
|
* .Roland McGrath2001-11-211-0/+4
|
* 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-17 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-08-172-4/+5
| | | | | * ialloc.c (diskfs_alloc_node): Remove warnings about stale nonzero st_blocks or st_size.
* .Roland McGrath2001-08-171-0/+8
|
* 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-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.
* 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.
* .Roland McGrath2001-08-101-0/+6
|
* 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-092-1/+9
| | | | | than the number of reserved blocks, set the number of available blocks to 0.
* .Roland McGrath2001-04-011-0/+13
|
* 2001-03-03 Roland McGrath <roland@frob.com>Roland McGrath2001-04-011-10/+6
| | | | | | | | * hyper.c (zeroblock, modified_global_blocks): Remove superfluous zero initializers. (allocate_mod_map): Likewise for static here. (get_hypermetadata): Don't munmap old ZEROBLOCK, just keep it. Allocate ZEROBLOCK with PROT_READ.