[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [dm-devel] lvcreate (snapshot) under kernel 2.6.1

On Thu, Jan 15, 2004 at 12:34:06AM -0500, Christian Robert wrote:

> well, I did patch my 2.6.1 kernel with 00003.patch to 00057.patch (omitting 0000{1,2}.patch
> because they gave an error (already patched, revert [y/n] for every patched files, 
> I assumed they are already applyed in 2.6.1)
> after reboot I can succesfully create/delete snapshot filesystems but unfortunately
> as soon as I write to the original I get several thousand reiserfs errors in my syslog
> telling access beyong extend of device ...  and all problems related to that (eg: reformat)

I just ran into this problems some days ago and posted a fix.

--- linux.orig/drivers/md/dm.c	2004-01-10 15:21:10.000000000 +0100
+++ linux/drivers/md/dm.c	2004-01-10 20:42:04.677696216 +0100
@@ -716,7 +716,7 @@
 	bdev = bdget_disk(disk, 0);
 	if (bdev) {
-		i_size_write(bdev->bd_inode, size << SECTOR_SHIFT);
+		i_size_write(bdev->bd_inode, (loff_t)size << SECTOR_SHIFT);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]