search for: cache_data

Displaying 8 results from an estimated 8 matches for "cache_data".

2013 Dec 26
0
[PATCH] core: Avoid initializing the cache more than once
...he as initialized */ } /* diff --git a/core/fs/diskio.c b/core/fs/diskio.c index 7d95d67..e9a4c1d 100644 --- a/core/fs/diskio.c +++ b/core/fs/diskio.c @@ -28,6 +28,7 @@ struct device * device_init(void *args) dev.disk = firmware->disk_init(args); dev.cache_size = 128*1024; dev.cache_data = malloc(dev.cache_size); + dev.cache_init = 0; /* Explicitly set cache as uninitialized */ return &dev; } diff --git a/core/fs/fs.c b/core/fs/fs.c index 8c1feea..d6da8a5 100644 --- a/core/fs/fs.c +++ b/core/fs/fs.c @@ -422,8 +422,9 @@ void fs_init(const struct fs_ops **ops, void *pr...
2009 May 24
0
malloc() in the core
...all, because hard disks are going to be changing from 512 to 4K sectors over the next several years, and second because filesystems like ext2 have metadata which is more logically cached on the filesystem block level): static struct cache_struct cache_head, cache[MAX_CACHE_ENTRIES]; static uint8_t cache_data[65536]; static int cache_block_size; static int cache_entries; void cache_init(int block_size) { struct cache_struct *prev, *cur; uint8_t *data = cache_data; int i; cache_block_size = block_size; cache_entries = sizeof cache_data / block_size; if (cache_entries > MAX_CACHE_...
2013 Oct 18
1
[RFC/PATCH 2/3] core: MultiFS infrastructure added.
...core/fs/cache.c @@ -16,7 +16,7 @@ * implementation since the block(cluster) size in FAT is a bit big. * */ -void cache_init(struct device *dev, int block_size_shift) +__export void cache_init(struct device *dev, int block_size_shift) { struct cache *prev, *cur; char *data = dev->cache_data; diff --git a/core/fs/diskio.c b/core/fs/diskio.c index 7d95d67..466b6a8 100644 --- a/core/fs/diskio.c +++ b/core/fs/diskio.c @@ -21,13 +21,27 @@ void getoneblk(struct disk *disk, char *buf, block_t block, int block_size) /* * Initialize the device structure. */ -struct device * device_init(vo...
2013 Oct 18
0
[RFC/PATCH 3/3] Wire up MultiFS support.
...lk_shift < 0) { + printf("MultiFS: No valid file system found!\n"); + goto free_dev; + } + + /* add fs_info into hdd queue */ + if (add_fs(fsp, hdd, partition - 1)) + goto free_dev; + + /* initialize the cache */ + if (fsp->fs_dev && fsp->fs_dev->cache_data) + cache_init(fsp->fs_dev, blk_shift); + + /* start out in the root directory */ + if (fsp->fs_ops->iget_root) { + fsp->root = fsp->fs_ops->iget_root(fsp); + fsp->cwd = get_inode(fsp->root); + } + + return fsp; +free_dev: + free(dev->di...
2015 Jul 22
13
[PULL 0/8] MultiFS suppport for BIOS and EFI
So last week I was wondering if XFS was still working -- even with its last on-disk structure changes -- and it _suprisingly_ worked as expected. Right, now I can finally get rid of GRUB and use Syslinux to boot my Linux on EFI from a rootfs with xfs. Shit, I have two partitions (the first one being the required ESP) so there is no way to access the other partitions since because Syslinux does not
2005 Sep 08
1
1.0alpha1: another imap core, no assert
...= {231, 205, 192, 192, 192, 158, 158, 158}}, log_file_seq = 1, log_file_offset = 24240, log_syncs = 0x0, transactions = 0, lock_id = 314, inconsistent = 0, syncing = 0} (gdb) print *(view->transaction) $6 = {cache = 0xaaca0, view = 0xc9e78, trans = 0xaa840, cache_file_seq = 1124149515, cache_data = 0xa21c8, cache_data_seq = {buffer = 0xa21f0, element_size = 4}, prev_seq = 21, prev_pos = 0, reservations = 0xa2128, reserved_space_offset = 0, reserved_space = 0, last_grow_size = 0, changes = 1} (gdb) print *dest $7 = {data = 0xb82a0, used = 0} (gdb) print dest->data $8 = (const void *)...
2007 May 29
0
Fw: [RFC] makedumpfile: xen extraction
...ly) */ + + for (i = 0; i < info->num_domain; i++) { + if (info->domain_list[i].domain_id == 0 && + info->domain_list[i].pickled_id == id) + return TRUE; + } + + return FALSE; +} + +int +create_dump_bitmap_xen(struct DumpInfo *info) +{ + unsigned int remain_size; + struct cache_data bm2; + unsigned long page_info_addr; + unsigned long pfn; + unsigned int count_info; + unsigned int _domain; + int i; + struct pt_load_segment *pls; + int ret = FALSE; + + /* note: the first half of bitmap is not used for Xen extraction */ + bm2.fd = info->fd_bitmap; + bm2.file_name = i...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address