search for: get_blkaddr

Displaying 4 results from an estimated 4 matches for "get_blkaddr".

2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...de <dprintf.h> +#include <fs.h> +#include <disk.h> +#include <cache.h> +#include "ufs.h" + +/* + * Copy blk address into buffer, this was needed since UFS1/2 addr size + * in blk maps differs from each other (32/64 bits respectivelly). + */ +static inline uint64_t +get_blkaddr (const uint8_t *blk, uint32_t index, uint32_t shift) +{ + uint64_t addr = 0; + + memcpy((uint8_t *) &addr, + (uint8_t *) blk + (index << shift), + 1 << shift); + + return addr; +} + +/* + * Scan forward in a range of blocks to see if they are contiguous, + * then ret...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...de <dprintf.h> +#include <fs.h> +#include <disk.h> +#include <cache.h> +#include "ufs.h" + +/* + * Copy blk address into buffer, this was needed since UFS1/2 addr size + * in blk maps differs from each other (32/64 bits respectivelly). + */ +static inline uint64_t +get_blkaddr (const uint8_t *blk, uint32_t index, uint32_t shift) +{ + uint64_t addr = 0; + + memcpy((uint8_t *) &addr, + (uint8_t *) blk + (index << shift), + 1 << shift); + + return addr; +} + +/* + * Scan forward in a range of blocks to see if they are contiguous, + * then ret...
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com> Wrote the documentation below. I think it would be good to push the doc to the wiki as soon as the UFS support gets merged. Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install) ----- There is a confusion about the name of this file system, then I decided to contact the author who replied: "The name has always been
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com> Change since v1: * Fix bug on dentry structure (thank you specification; btw, sarcasm), and consequently a bug on ufs_readdir. * Add readlink support (applied tests for symlinks whose destionation path were stored in blk pointers and the file itself). * Several improvements. Wrote the documentation below. I think it would be good to