From f524320acfe706a70094e655f473254b7bdb6f0c Mon Sep 17 00:00:00 2001 From: kalpak Date: Fri, 8 Aug 2008 13:58:15 +0000 Subject: [PATCH] b=10555 i=adilger Small fix for fiemap calls on block boundary --- ldiskfs/kernel_patches/patches/ext3-fiemap-2.6-sles10.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6-sles10.patch b/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6-sles10.patch index ad55d7a..a8c567a 100644 --- a/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6-sles10.patch +++ b/ldiskfs/kernel_patches/patches/ext3-fiemap-2.6-sles10.patch @@ -379,7 +379,7 @@ Index: linux-2.6.16.60-0.23/fs/ext3/extents.c + return -EBADR; + + start_blk = start >> inode->i_sb->s_blocksize_bits; -+ len_blks = (len + inode->i_sb->s_blocksize) >> inode->i_sb->s_blocksize_bits; ++ len_blks = (len + inode->i_sb->s_blocksize - 1) >> inode->i_sb->s_blocksize_bits; + + ext3_init_tree_desc(&tree, inode); + tree.private = fieinfo; @@ -407,10 +407,10 @@ Index: linux-2.6.16.60-0.23/fs/ext3/fiemap.h +/* + * FIEMAP ioctl infrastructure. + * -+ * Copyright (C) 2007 Cluster File Systems, Inc ++ * Copyright 2008 Sun Microsystems, Inc. + * + * Author: Kalpak Shah -+ * Andreas Dilger ++ * Andreas Dilger + */ + +#ifndef _LINUX_EXT3_FIEMAP_H -- 1.8.3.1