Home
last modified time | relevance | path

Searched refs:SUPERBLOCK_SIZE (Results 1 – 19 of 19) sorted by relevance

/external/valgrind/memcheck/tests/
Dmempool.c8 #define SUPERBLOCK_SIZE 100000 macro
39 p->where = p->mem = (char *)mmap(NULL, SUPERBLOCK_SIZE, in make_pool()
44 p->where = p->mem = (char *)malloc(SUPERBLOCK_SIZE); in make_pool()
47 p->size = p->left = SUPERBLOCK_SIZE; in make_pool()
49 (void) VALGRIND_MAKE_MEM_NOACCESS(p->where, SUPERBLOCK_SIZE); in make_pool()
91 munmap(p->mem, SUPERBLOCK_SIZE); in destroy_pool()
Dmempool2.c13 #define SUPERBLOCK_SIZE 100000 macro
42 p->where = p->mem = (char *)mmap(NULL, SUPERBLOCK_SIZE, in make_pool()
47 p->where = p->mem = (char *)malloc(SUPERBLOCK_SIZE); in make_pool()
50 p->size = p->left = SUPERBLOCK_SIZE; in make_pool()
52 (void) VALGRIND_MAKE_MEM_NOACCESS(p->where, SUPERBLOCK_SIZE); in make_pool()
94 munmap(p->mem, SUPERBLOCK_SIZE); in destroy_pool()
Dcustom_alloc.c8 #define SUPERBLOCK_SIZE 100000 macro
16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
25 (void) VALGRIND_MAKE_MEM_NOACCESS(p, SUPERBLOCK_SIZE); in get_superblock()
41 hp_lim = hp + SUPERBLOCK_SIZE - 1; in custom_alloc()
/external/valgrind/massif/tests/
Dcustom_alloc.c8 #define SUPERBLOCK_SIZE 100000 macro
16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
35 hp_lim = hp + SUPERBLOCK_SIZE - 1; in custom_alloc()
/external/valgrind/drd/tests/
Dcustom_alloc.c8 #define SUPERBLOCK_SIZE 100000 macro
16 void* p = mmap( 0, SUPERBLOCK_SIZE, PROT_READ|PROT_WRITE|PROT_EXEC, in get_superblock()
35 hp_lim = hp + SUPERBLOCK_SIZE - 1; in custom_alloc()
/external/e2fsprogs/lib/ext2fs/
Ddupfs.c56 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &fs->super); in ext2fs_dup_handle()
59 memcpy(fs->super, src->super, SUPERBLOCK_SIZE); in ext2fs_dup_handle()
61 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &fs->orig_super); in ext2fs_dup_handle()
64 memcpy(fs->orig_super, src->orig_super, SUPERBLOCK_SIZE); in ext2fs_dup_handle()
Dclosefs.c202 retval = io_channel_write_blk64(fs->io, 1, -SUPERBLOCK_SIZE, in write_primary_superblock()
211 for (check_idx = 0; check_idx < SUPERBLOCK_SIZE/2; check_idx++) { in write_primary_superblock()
215 for (check_idx++; check_idx < SUPERBLOCK_SIZE/2; check_idx++) in write_primary_superblock()
231 memcpy(fs->orig_super, super, SUPERBLOCK_SIZE); in write_primary_superblock()
271 return io_channel_write_blk64(fs->io, group_block, -SUPERBLOCK_SIZE, in write_backup_super()
322 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &super_shadow); in ext2fs_flush2()
Dopenfs.c173 retval = io_channel_alloc_buf(fs->io, -SUPERBLOCK_SIZE, &fs->super); in ext2fs_open2()
213 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &fs->orig_super); in ext2fs_open2()
217 retval = io_channel_read_blk(fs->io, superblock, -SUPERBLOCK_SIZE, in ext2fs_open2()
222 memcpy(fs->orig_super, fs->super, SUPERBLOCK_SIZE); in ext2fs_open2()
Dtst_badblocks.c228 fs->super = malloc(SUPERBLOCK_SIZE); in file_test_invalid()
229 memset(fs->super, 0, SUPERBLOCK_SIZE); in file_test_invalid()
Dundo_io.c224 retval = io_channel_read_blk64(channel, 1, -SUPERBLOCK_SIZE, &super); in write_undo_indexes()
227 sb_crc = ext2fs_crc32c_le(~0, (unsigned char *)&super, SUPERBLOCK_SIZE); in write_undo_indexes()
258 -SUPERBLOCK_SIZE, &super); in write_undo_indexes()
507 retval = io_channel_read_blk64(channel, 1, -SUPERBLOCK_SIZE, &super); in check_filesystem()
519 -SUPERBLOCK_SIZE, buf); in check_filesystem()
528 sb_crc = ext2fs_crc32c_le(~0, (unsigned char *)buf, SUPERBLOCK_SIZE); in check_filesystem()
Dmkjournal.c375 char buf[SUPERBLOCK_SIZE]; in ext2fs_add_journal_device()
390 -SUPERBLOCK_SIZE, in ext2fs_add_journal_device()
417 -SUPERBLOCK_SIZE, buf))) in ext2fs_add_journal_device()
Dimager.c206 memcpy(buf, fs->super, SUPERBLOCK_SIZE); in ext2fs_image_super_write()
269 memcpy(fs->super, buf, SUPERBLOCK_SIZE); in ext2fs_image_super_read()
Dinitialize.c148 retval = ext2fs_get_mem(SUPERBLOCK_SIZE, &super); in ext2fs_initialize()
153 memset(super, 0, SUPERBLOCK_SIZE); in ext2fs_initialize()
Dext2fs.h46 #define SUPERBLOCK_SIZE 1024 macro
/external/e2fsprogs/misc/
De2undo.c163 retval = io_channel_read_blk64(channel, 1, -SUPERBLOCK_SIZE, &super); in check_filesystem()
180 -SUPERBLOCK_SIZE, buf); in check_filesystem()
192 sb_crc = ext2fs_crc32c_le(~0, (unsigned char *)buf, SUPERBLOCK_SIZE); in check_filesystem()
Dtune2fs.c198 static int get_journal_sb(ext2_filsys jfs, char buf[SUPERBLOCK_SIZE]) in get_journal_sb() argument
209 ext2fs_journal_sb_start(jfs->blocksize), -SUPERBLOCK_SIZE, buf))) { in get_journal_sb()
244 char buf[SUPERBLOCK_SIZE] __attribute__ ((aligned(8))); in remove_journal_device()
305 -SUPERBLOCK_SIZE, buf); in remove_journal_device()
2678 char buf[SUPERBLOCK_SIZE] __attribute__ ((aligned(8))); in fs_update_journal_user()
2721 retval = io_channel_write_blk64(jfs->io, start, -SUPERBLOCK_SIZE, buf); in fs_update_journal_user()
3035 char buf[SUPERBLOCK_SIZE] __attribute__ ((aligned(8))); in main()
3107 -SUPERBLOCK_SIZE, buf))) in main()
Dmke2fs.c2528 retval = io_channel_read_blk64(channel, 1, -SUPERBLOCK_SIZE, &super); in should_do_undo()
/external/e2fsprogs/e2fsck/
Dutil.c574 if (ext2fs_get_mem(SUPERBLOCK_SIZE, &buf)) in get_backup_sb()
585 -SUPERBLOCK_SIZE, buf)) in get_backup_sb()
Dsuper.c967 char buf[SUPERBLOCK_SIZE]; in check_backup_super_block()
990 retval = io_channel_read_blk(fs->io, sb, -SUPERBLOCK_SIZE, in check_backup_super_block()