search for: block_off

Displaying 13 results from an estimated 13 matches for "block_off".

2009 Mar 09
4
[PATCH] ocfs2: Use xs->bucket to set xattr value outside.
...s(-) diff --git a/fs/ocfs2/xattr.c b/fs/ocfs2/xattr.c index f1b9af1..503a1d7 100644 --- a/fs/ocfs2/xattr.c +++ b/fs/ocfs2/xattr.c @@ -4795,19 +4795,34 @@ static int ocfs2_xattr_bucket_set_value_outside(struct inode *inode, char *val, int value_len) { - int offset; + int ret, offset, block_off; struct ocfs2_xattr_value_root *xv; struct ocfs2_xattr_entry *xe = xs->here; + struct ocfs2_xattr_bucket *bucket = xs->bucket; + struct ocfs2_xattr_header *xh = bucket_xh(bucket); + void *base; BUG_ON(!xs->base || !xe || ocfs2_xattr_is_local(xe)); - offset = le16_to_cpu(xe->xe...
2009 Jul 13
1
[PATCH] Fix compilation warning for fs/ocfs2/xattr.c
Hi, gcc 4.4.1 generates the following build warning on i386: CC [M] fs/ocfs2/xattr.o fs/ocfs2/xattr.c: In function ???ocfs2_xattr_block_get???: fs/ocfs2/xattr.c:1055: warning: ???block_off??? may be used uninitialized in this function The following fix is based on a similar approach by David Howells few days back: http://lkml.org/lkml/2009/7/9/109, Signed-off-by: Subrata Modak<subrata at linux.vnet.ibm.com>, --- --- a/fs/ocfs2/xattr.c 2009-06-17 17:47:21.000000000 +0530 +++...
2012 Aug 02
2
[PATCH] add additional checks to ext2 loader
...m> --- core/fs/ext2/ext2.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c index bddde8d..8f0f2a4 100644 --- a/core/fs/ext2/ext2.c +++ b/core/fs/ext2/ext2.c @@ -139,6 +139,8 @@ ext2_get_inode(struct fs_info *fs, int inr) block_off = inode_offset % EXT2_INODES_PER_BLOCK(fs); data = get_cache(fs->fs_dev, block_num); + if (!data) + return NULL; return (const struct ext2_inode *) (data + block_off * EXT2_SB(fs)->s_inode_size); @@ -164,7 +166,7 @@ static struct inode *ext2_iget_by_inr(struct fs_info *fs,...
2008 Oct 28
14
[PATCH 0/13] ocfs2: xattr bucket API
When the extended attribute namespace grows to a b-tree, the leaf clusters are organized by means of 'buckets'. Each bucket is 4K in size, regardless of blocksize. Thus, a bucket may be made of more than one block. fs/ocfs2/xattr.c has a nice little abstraction to wrap this, struct ocfs2_xattr_bucket. It contains a list of buffer_heads representing these blocks, and there is even an
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...k.h> +#include <fs.h> +#include <minmax.h> +#include "core.h" +#include "ufs.h" + +/* + * Read the super block and check magic fields based on + * passed paramaters. + */ +static bool +do_checksb(struct ufs_super_block *sb, struct disk *disk, + const uint32_t sblock_off, const uint32_t ufs_smagic) +{ + uint32_t lba; + static uint32_t count; + + /* How many sectors are needed to fill sb struct */ + if (!count) + count = sizeof *sb >> disk->sector_shift; + /* Get lba address based on sector size of disk */ + lba = sblock_off >> (disk...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...k.h> +#include <fs.h> +#include <minmax.h> +#include "core.h" +#include "ufs.h" + +/* + * Read the super block and check magic fields based on + * passed paramaters. + */ +static bool +do_checksb(struct ufs_super_block *sb, struct disk *disk, + const uint32_t sblock_off, const uint32_t ufs_smagic) +{ + uint32_t lba; + static uint32_t count; + + /* How many sectors are needed to fill sb struct */ + if (!count) + count = sizeof *sb >> disk->sector_shift; + /* Get lba address based on sector size of disk */ + lba = sblock_off >> (disk...
2009 Mar 27
42
[PATCH 00/42] ocfs2: Add reflink file support. V1
Hi all, So I have finally finished the v1 of reflink for ocfs2. It has some bugs that I am still investigating, but the schema is almost there. So I'd like to send it out first for review. And Tristan and I will continue to work on the stability of the code. The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink. For the design doc, please
2009 Apr 03
42
[PATCH 00/42] ocfs2: Add reflink file support. V2
Hi all, Change from v1 to v2: bug fix and metadata/credits reservation improvement. The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink. For the design doc, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/RefcountTrees http://oss.oracle.com/osswiki/OCFS2/DesignDocs/ReflinkOperation
2008 Sep 04
4
[PATCH 0/3] ocfs2: Switch over to JBD2.
ocfs2 currently uses the Journaled Block Device (JBD) for its journaling. This is a very stable and tested codebase. However, JBD is limited by architecture to 32bit block numbers. This means an ocfs2 filesystem is limited to 2^32 blocks. With a 4K blocksize, that's 16TB. People want larger volumes. Fortunately, there is now JBD2. JBD2 adds 64bit block number support and some other
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...include "ext2_fs.h" @@ -66,7 +67,6 @@ static inline bool ext2_match_entry(const char *name, size_t len, return !memcmp(name, de->d_name, len); } - /* * p is at least 6 bytes before the end of page */ @@ -144,7 +144,7 @@ ext2_get_inode(struct fs_info *fs, int inr) (data + block_off * EXT2_SB(fs)->s_inode_size); } -static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode) +static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode, uint32_t inr) { inode->mode = IFTODT(e_inode->i_mode); inode->size = e_inode-...
2009 Apr 30
42
[PATCH 00/39] ocfs2: Add reflink file support. V3
Hi all, So I have finally finished the v3 of reflink for ocfs2. The biggest change is that we support 64bit cluster offset now(Thank Mark and Joel for it). [View] http://oss.oracle.com/git/?p=tma/linux-2.6.git;a=shortlog;h=refcount [Pull] git://oss.oracle.com/git/tma/linux-2.6.git refcount The general information for reflink, please see http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.
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