search for: blktosec

Displaying 7 results from an estimated 7 matches for "blktosec".

2012 Aug 02
0
[PATCH 3/3] ALPHA: implement and use rdwr_bytes
...o9660.c index 3cd3ac4..60b3b55 100644 --- a/core/fs/iso9660/iso9660.c +++ b/core/fs/iso9660/iso9660.c @@ -251,7 +251,7 @@ static int iso_fs_init(struct fs_info *fs) char pvd[2048]; /* Primary Volume Descriptor */ uint32_t pvd_lba; struct disk *disk = fs->fs_dev->disk; - int blktosec; + int blkshift; sbi = malloc(sizeof(*sbi)); if (!sbi) { @@ -268,14 +268,14 @@ static int iso_fs_init(struct fs_info *fs) fs->block_shift = 11; /* A CD-ROM block is always 2K */ fs->sector_size = 1 << fs->sector_shift; fs->block_size = 1 <<...
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...+ block, 3, nblocks); + + /* This can't happen... */ + return 0; +} + +/* + * Next extent for getfssec + * "Remaining sectors" means (lstart & blkmask). + */ +int ufs_next_extent(struct inode *inode, uint32_t lstart) +{ + struct fs_info *fs = inode->fs; + int blktosec = BLOCK_SHIFT(fs) - SECTOR_SHIFT(fs); + int frag_shift = BLOCK_SHIFT(fs) - UFS_SB(fs)->c_blk_frag_shift; + int blkmask = (1 << blktosec) - 1; + block_t block; + size_t nblocks = 0; + + ufs_debug("ufs_next_extent:\n"); + block = ufs_bmap(inode, lstart >> b...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...+ block, 3, nblocks); + + /* This can't happen... */ + return 0; +} + +/* + * Next extent for getfssec + * "Remaining sectors" means (lstart & blkmask). + */ +int ufs_next_extent(struct inode *inode, uint32_t lstart) +{ + struct fs_info *fs = inode->fs; + int blktosec = BLOCK_SHIFT(fs) - SECTOR_SHIFT(fs); + int frag_shift = BLOCK_SHIFT(fs) - UFS_SB(fs)->c_blk_frag_shift; + int blkmask = (1 << blktosec) - 1; + block_t block; + size_t nblocks = 0; + + ufs_debug("ufs_next_extent:\n"); + block = ufs_bmap(inode, lstart >> b...
2012 Sep 10
19
Initial support for sector size >512
This set of patches add some support for sector size >512. Currently it fixes extlinux, MBR for GPT and ext partitions. Other code is unaffected. This set of patches has been tested on a read Dell machine running a beta firmware.
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
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...size_t *nblocks) return ret; } - /* * Next extent for getfssec */ @@ -215,6 +214,8 @@ int ext2_next_extent(struct inode *inode, uint32_t lstart) block_t block; size_t nblocks = 0; + assert(ext2_has_inline_data(inode) == 0); + block = ext2_bmap(inode, lstart >> blktosec, &nblocks); if (!block) diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c index 7988faa..9498480 100644 --- a/core/fs/ext2/ext2.c +++ b/core/fs/ext2/ext2.c @@ -5,6 +5,7 @@ #include <minmax.h> #include "cache.h" #include "core.h" +#include "assert.h&...
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