Age | Commit message (Collapse) | Author |
|
than the number of reserved blocks, set the number of available
blocks to 0.
|
|
|
|
* 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.
|
|
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* hurd.texi (Store Management): Replace off_t with store_offset_t.
(Store I/O): Likewise.
(Store Classes): Likewise.
ext2fs/
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* ext2fs.c (main): Use %Ld instead %ld to print store->size.
* hyper.c (get_hypermetadata): Likewise.
libstore/
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* zero.c (zero_remap): Change type of variables length, old_length
to store_offset_t.
(zero_decode): Change type of variable size to store_offset_t.
(zero_open): Likewise. Use strtoull instead strtoul to parse
size argument from name. Use store_offset_t for max_offs and
its calculation.
(store_zero_create): Use store_offset_t type for size argument.
* derive.c (_store_derive): Use store_offset_t as type for
variable last_part_base.
* stripe.c (addr_adj): Change types of addr argument and return
value to store_offset_t.
(store_ileave_create): Change type of interleave argument and
variables min_end and end to store_offset_t, but type of variable
block_size to size_t.
(store_concat_create): Change type of variable block_size to
size_t.
* make.c (_store_create): Change end argument type to store_offset_t.
* store.h: New type store_offset_t, define to off64_t.
(struct store_run): Change type of start and length to
store_offset_t.
(struct store): Change type of end, wrap_src, wrap_dst, blocks,
size to store_offset_t.
Change type of addr arg in store_read_meth_t and
store_write_meth_t to store_offset_t, as well as in declarations
for store_read and store_write.
Change type of argument end in _store_create declaration to
store_offset_t.
Change type of argument size in store_zero_create to
store_offset_t. Change type of argument interleace in
store_ileace_create to store_offset_t.
* rdwr.c (store_find_first_run): Change type of return value, addr
and *base arguments, and variables wrap_src and run_blocks to
store_offset_t.
(store_next_run): Change type of *base argument to store_offset_t.
(store_write): Change type of addr argument and variable base to
store_offset_t.
(store_read): Likewise, also for addr argument of local function seg_read.
Change type of len argument to size_t.
* copy.c (copy_read): Change type of addr argument to store_offset_t.
(copy_write): Likewise.
* device.c (dev_read): Likewise.
(dev_write): Likewise.
* file.c (file_read): Likewise.
(file_write): Likewise.
(file_byte_read): Likewise.
(file_byte_write): Likewise.
* mvol.c (mvol_read): Likewise.
(mvol_write): Likewise.
* remap.c (remap_read): Likewise.
(remap_write): Likewise.
* stripe.c (stripe_read): Likewise.
(stripe_write): Likewise.
* task.c (task_read): Likewise.
(task_write): Likewise.
* zero.c (zero_read): Likewise.
(zero_write): Likewise.
* remap.c (store_remap_runs): Change type of addr and len
arguments of local function add_run and of local variables addr,
length, baddr, blen and len to store_offset_t.
(remap_open): Cast -1 to store_offset_t, not off_t.
* argp.c (struct store_parsed): Change type of interleave from
off_t to store_offset_t.
(store_parsed_append_args): Use %Ld instead %ld to print
interleave value.
(store_parsed_name): Likewise.
ufs/
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* main.c (main): Use %Ld instead %ld to print store->size.
* hyper.c (get_hypermetadata): Likewise.
* inode.c (diskfs_S_file_get_storage_info): Change type of variables
start and length from off_t to store_offset_t.
utils/
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* storeread.c (main): Change type of addr to store_offset_t,
also for first argument of local function dump.
Add comment about store->size as len parameter for store_read.
Use atoll instead atoi for addr argument.
* storeinfo.c (print_store): Remove local function pint, add two
similar functions psiz and poff, accepting and printing a size_t
or store_offset_t respectively.
Use psiz to print block_size, poff to print blocks and size of
store.
Use %Ld instead %ld to print runs.
* storecat.c (main): Change type of addr and left to store_offset_t.
|
|
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.
|
|
* 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>.
|
|
|
|
* truncate.c (diskfs_truncate): Use & instead of %.
|
|
* 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-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.
|
|
|
|
* inode.c (write_node): Use memcpy instead of a loop.
|
|
comes before the ports lib. This makes sure the functions in
libthreads properly override the stubs in libports with the new
dynamic linker semantics in glibc 2.2.
* truncate.c (trunc_indirect): Add missing argument to
pager_flush_some.
|
|
* truncate.c (trunc_indirect): Add missing argument to pager_flush_some.
|
|
* truncate.c (trunc_indirect): Before freeing an indirect block,
remove it from the disk pager's kernel cache.
|
|
|
|
* balloc.c (ext2_free_blocks, ext2_new_block): Fix formats to avoid
-Wformat warnings.
* getblk.c (ext2_alloc_block, inode_getblk, ext2_getblk): Likewise.
* ialloc.c (ext2_count_free_inodes): Likewise.
* truncate.c (trunc_direct): Likewise.
* pager.c (pending_blocks_write, diskfs_grow): Likewise.
|
|
|
|
* dir.c (diskfs_get_directs): Don't allocate buffer for *DATA until
after scanning for ENTRY and possibly returning EOF.
|
|
|
|
* 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).
|
|
|
|
* pager.c (file_pager_write_page): Lock NODE->dn->alloc_lock
before accessing NODE->allocsize. Fixes Debian bug #40302.
|
|
|
|
* ext2fs.c (diskfs_name_max): New variable.
|
|
|
|
* hyper.c (get_hypermetadata): Avoid overflow in calculation of disk
size vs superblock-specified requirement.
Add a warning for wasted disk blocks after last filesystem block.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* bitmap.c (ffz): Subtract one from (1-origin) result of ffs to get
our (0-origin) result.
* Makefile (LCLHDRS): bitmap.h -> bitmap.c
|
|
* ext2fs.h (test_bit, set_bit, clear_bit): Rewritten to operate on
32-bit words instead of bytes.
* ext2fs.h (group_desc): Inline function replaced with macro.
(group_desc_image): New variable.
* hyper.c (get_hypermetadata): Initialize it.
* ext2fs.h (sblock_block): Declare new variable.
(SBLOCK_LBLOCK): Macro removed.
(SBLOCK_OFFS): Define in terms of sblock_block.
* ext2fs.c (options): Add --sblock/-S.
(parse_opt): Parse it to set sblock_block.
* hyper.c (sblock_block): New variable.
(get_hypermetadata): Use sblock_block instead of constant SBLOCK_BLOCK.
* 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.
|
|
* truncate.c (diskfs_truncate): Add missing call to
diskfs_end_catch_exception.
|
|
* ext2fs.h (sblock_block): Declare new variable.
(SBLOCK_LBLOCK): Macro removed.
(SBLOCK_OFFS): Define in terms of sblock_block.
* ext2fs.c (options): Add --sblock/-S.
(parse_opt): Parse it to set sblock_block.
* hyper.c (sblock_block): New variable.
(get_hypermetadata): Use sblock_block instead of constant SBLOCK_BLOCK.
* ext2fs.c (options): List --debug/-D unconditionally, adding to help
text #ifndef EXT2FS_DEBUG
(parse_opt): Always grok -D. #ifndef EXT2FS_DEBUG, reject it with
message saying debugging support not compiled in.
|
|
* Makefile (LCLHDRS): bitmap.h -> bitmap.c
|
|
* 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.
|
|
* ext2fs.h (group_desc): Inline function replaced with macro.
(group_desc_image): New variable.
* hyper.c (get_hypermetadata): Initialize it.
* ext2fs.h (sblock_block): Declare new variable.
(SBLOCK_LBLOCK): Macro removed.
(SBLOCK_OFFS): Define in terms of sblock_block.
* ext2fs.c (options): Add --sblock/-S.
(parse_opt): Parse it to set sblock_block.
* hyper.c (sblock_block): New variable.
(get_hypermetadata): Use sblock_block instead of constant SBLOCK_BLOCK.
* 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.
|
|
|
|
* 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.
|
|
* bitmap.c (ffz): Don't subtract one (duh).
|
|
|
|
* ext2fs.h (SBLOCK_LBLOCK): New macro, filesystem block number of sb.
(BLOCKSIZE_SCALE): New macro for converting min-blocks to fs blocks.
(group_desc): Fix calculation of offset from superblock, so it works
properly with block_size != EXT2_MIN_BLOCK_SIZE.
* ext2fs.h (EXT2FS_EI): New macro, use it for all extern inlines.
|
|
|
|
* bitmap.c (count_free, find_next_zero_bit, find_first_zero_bit):
Make these all static inline.
(ffz, ffz_nibble_map): Function and variable removed.
(ffz): Replace decl with macro defined in terms of ffs.
* ext2fs.h (count_free, find_next_zero_bit, find_first_zero_bit, ffz):
Remove these declarations.
* Makefile (SRCS): Remove bitmap.c.
(LCLHDRS): Add bitmap.c here instead.
* balloc.c, ialloc.c: #include "bitmap.c" here.
|
|
|
|
* bitmap.c (memscan): Function removed.
* ext2fs.h: Removed its decl.
* balloc.c (memscan): New static function, defined using memchr.
|
|
|
|
|