aboutsummaryrefslogtreecommitdiff
path: root/ext2fs
Commit message (Collapse)AuthorAgeFilesLines
...
* (file_pager_read_page, file_pager_write_page): Check for a page offsetRoland McGrath1996-01-301-3/+13
| | | | beyond the allocsize and return EIO.
* (LDFLAGS): Add -static.Miles Bader1996-01-181-0/+2
|
* (diskfs_S_file_get_storage_info): Calculate the right value for *RUNS_LEN.Miles Bader1996-01-181-2/+2
|
* (diskfs_file_update): Ext2fs doesn't require that the last block in the fileMiles Bader1996-01-181-37/+26
| | | | | always be allocated, so don't. (diskfs_grow, pager_unlock_page): Don't set last_block_allocated.
* (struct disknode): Get rid of last_block_allocated field.Miles Bader1996-01-181-6/+0
|
* (read_disknode): Don't set last_block_allocated.Miles Bader1996-01-181-1/+0
|
* (diskfs_truncate): Don't set last_block_allocated.Miles Bader1996-01-181-3/+2
|
* (diskfs_direnter):Miles Bader1996-01-151-4/+4
| | | | Don't include the terminating '\0' in on-disk directory entry names.
* (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.
* (pokel_inherit, pokel_finalize): New declarations.Miles Bader1996-01-151-0/+5
|
* (pokel_inherit, pokel_finalize): New functions.Miles Bader1996-01-151-2/+49
|
* (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.
* (diskfs_alloc_node): Set NP->istranslated to 0.Miles Bader1996-01-141-0/+1
|
* (write_node): If NP isn't translated, force DI->i_translator to 0.Miles Bader1996-01-141-0/+2
|
* (inode_getblk, block_getblk): Set dn_set_mtime too.Miles Bader1996-01-141-2/+2
|
* (pager_bucket): Made global.Roland McGrath1996-01-061-2/+2
| | | | (create_disk_pager): Pass MAY_CACHE to disk_setup_pager.
* (main): Don't map in disk image here; create_disk_pager now does it.Roland McGrath1996-01-061-16/+3
|
* Declare create_disk_pager.Roland McGrath1996-01-051-0/+3
|
* (create_disk_pager): Use disk_pager_setup.Roland McGrath1996-01-041-37/+26
|
* (disk_pager, disk_pager_port, disk_image, create_disk_pager): Decls removed.Roland McGrath1996-01-041-12/+7
| | | | Include hurd/diskfs-pager.h instead.
* (dirscanblock): Apply mib's changes to ufs/dir.c.Miles Bader1995-11-211-16/+42
|
* Initial revisionMiles Bader1995-11-061-0/+146
|
* (main): Add FLAGS arg to diskfs_startup_diskfs call.Miles Bader1995-11-061-1/+1
|
* (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.
* (create_disk_pager, diskfs_get_filemap, pager_clear_user_data):Miles Bader1995-10-211-97/+180
| | | | | | | | | | | | | | Don't use the p field in a upi. (diskfs_get_filemap): Update/initialize the max_prot field. Add the prot arg. (drop_pager_softrefs): Declare PAGER, not UPI. (enable_caching): The disk node is upi->node, not upi->np. (diskfs_get_filemap_pager_struct, flush_node_pager, diskfs_file_update, pager_clear_user_data, drop_pager_softrefs): Use pager field, not fileinfo. (flush_node_pager): New function. (create_disk_pager): Store the actual pager into DISK_PAGER. (diskfs_shutdown_pager, diskfs_sync_everything): Use DISK_PAGER directly, not ->p.
* (_pokel_exec, pokel_flush): New functions.Miles Bader1995-10-211-6/+22
| | | | (pokel_sync): Use _pokel_exec to do the work.
* (main):Miles Bader1995-10-211-222/+32
| | | | | | | | | | | | Always include VM_PROT_WRITE in max prot. Use DISK_PAGER directly, not ->p. Use diskfs routines to open the device. Support both file and mach devices. Move the parse function here. Use argp for parsing. (usage, USAGE, SHORT_OPTS, long_opts, console_stdio): Removed (parse_opt): Move into main (as a nested function). (printf, _ext2_error, _ext2_panic, _ext2_warning): Functions moved to msg.c (diskfs_init_completed): Func deleted (now in libdiskfs).
* Initial revisionMiles Bader1995-10-201-0/+90
|
* (SRCS): Remove devio.c, add msg.c and storeinfo.c.Miles Bader1995-10-201-2/+2
|
* (dev_read_sync, dev_write_sync):Miles Bader1995-10-201-2/+4
| | | | Offset the address to which we're doing i/o with DEVICE_START.
* (enable_delayed_copies, force_delayed_copies):Miles Bader1995-10-201-16/+16
| | | | | Replace fileinfo field with pager. (force_delayed_copies): Give diskfs_get_filemap a protection arg.
* (allocate_mod_map): New function (from get_hypermetadata).Miles Bader1995-10-201-27/+72
| | | | | | | | | (zeroblock, modified_global_blocks): Define (were common). (diskfs_readonly_changed): New function. (get_hypermetadata): Deallocate ZEROBLOCK if necessary. Use allocate_mod_map to allocate MODIFIED_GLOBAL_BLOCKS. Use diskfs device functions & variables instead of our own.
* (diskfs_lookup, diskfs_dirempty): Give diskfs_get_filemap a protection arg.Miles Bader1995-10-201-9/+6
|
* (struct user_pager_info): Add max_prot field, remove p.Miles Bader1995-10-201-31/+13
| | | | | | | | | | | (struct disknode): Replace fileinfo field with pager. (pokel_flush, flush_node_pager): New declarations. (disk_pager): Type changed to struct pager. (sync_global_ptr): Use DISK_PAGER, not DISK_PAGER->p. (device_arg, device_name, device_port, device_start, device_size, device_block_size): Declarations removed. (MS_RDONLY, MS_NOSUID, MS_NODEV, MS_NOEXEC, MS_SYNCHRONOUS, MS_REMOUNT, S_APPEND, S_IMMUTABLE, IS_APPEND, IS_IMMUTABLE): Macros deleted.
* (diskfs_set_statfs): fsys_stb_bsize -> fsys_stb_iosize.Miles Bader1995-10-051-2/+2
| | | | fsys_stb_fsize -> fsys_stb_bsize.
* (pokel_init): Initialize the free_pokes field.Miles Bader1995-09-171-8/+17
| | | | | (pokel_add): Assert that this malloc should succeed. (pokel_sync): Don't hold POKEL's spin lock while syncing.
* (diskfs_alloc_node): Check for a non-zero ALLOCSIZE.Miles Bader1995-09-171-6/+15
|
* (trunc_indirect): Only record an indirect block as being modified when itMiles Bader1995-09-151-1/+2
| | | | actually is.
* u32 --> block_tMiles Bader1995-09-155-13/+11
|
* (diskfs_truncate): Use the new truncate functions.Miles Bader1995-09-151-250/+158
| | | | | | | | | | | | | | | | (poke_pages): Gratuitous cosmetic changes. (trunc_direct): Rewritten, new args. (trunc_indirect): Rewritten, new args, now more general to support all the various indirection levels. (trunc_triple_indirect, trunc_double_indirect, trunc_single_indirect): New functions. (struct free_block_run): New structure. (free_block_run_finish, free_block_run_free_ptr, free_block_run_add, free_block_run_init, _free_block_run_flush): New functions. (trunc_dindirect, trunc_tindirect): Functions deleted. (DIRECT_BLOCK, INDIRECT_BLOCK, DINDIRECT_BLOCK, TINDIRECT_BLOCK): Macros deleted.
* (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_pager_users): Ignore the disk pager when seeing if there are anyMiles Bader1995-09-051-9/+8
| | | | | | active pagers. (diskfs_shutdown_pager): shutdown_one gets passed a pager, not a upi. (diskfs_sync_everything): sync_one gets passed a pager, not a upi.
* (thread_cancel): Removed.Miles Bader1995-09-031-6/+0
|
* (ext2fs): Put libports in the right place in the linking order.Miles Bader1995-08-251-1/+1
|
* (LCLHDRS): Put all dependencies here.Miles Bader1995-08-241-11/+3
| | | | | (HURDLIBS): Removed. Remove rules for error.o.
* (diskfs_get_filemap): Drop initial reference created by pager_create.Michael I. Bushnell1995-07-211-16/+27
| | | | | (pager_clear_user_data): Only clear UPI->node->dn->fileinfo if it still points to us.
* (diskfs_get_filemap): Free initial reference created by pager_create.Michael I. Bushnell1995-07-211-1/+5
|
* (diskfs_pager_users): New function.Miles Bader1995-07-091-0/+68
|