All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir V. Saveliev" <vs@namesys.com>
To: pjagoda@bluenet.waw.pl
Cc: reiserfs-list@namesys.com
Subject: Re: Files > 2GB and 3.6 version (after converting from 3.5)
Date: Tue, 19 Sep 2006 01:16:24 +0400	[thread overview]
Message-ID: <200609190116.24775.vs@namesys.com> (raw)
In-Reply-To: <4569.192.168.0.1.1158528028.squirrel@www.bluenet.waw.pl>

Hello

On Monday 18 September 2006 01:20, Pawel Jagoda wrote:
> > Hello
> >
> > On Saturday 16 September 2006 16:25, Pawel Jagoda wrote:
> >> Hello.
> >>
> >> I've backup my data - one file, which have 4060 MB. Unfortunetly I
> >> didn't
> >> point out that my destination file system is in old 3.5.x version. And
> >> of
> >> course I cannot read my data after 2GB (it says: Input/Output Error). I
> >> have converted my filesystem into 3.6.x, but still I'm not able to read
> >> this file. But if I create new file (for example: dd if=/dev/zero
> >> of=/mnt/hda3/some_file bs=1M count=3000), there is no problem to read
> >> it.
> >> Is it possible, to do something to restore my backup from this file? If
> >> yes, then how can I do it?
> >>
> >
> > Which kernel did you use?
> >
> 
> 2.6.14.7
> 
> 

Please try whether the attached patch helps.


diff -puN fs/reiserfs/inode.c~reiserfs-debug-read fs/reiserfs/inode.c



diff -puN fs/reiserfs/inode.c~reiserfs-read-4gb-files fs/reiserfs/inode.c
--- linux-2.6.14.7/fs/reiserfs/inode.c~reiserfs-read-4gb-files	2006-09-19 01:41:46.000000000 +0400
+++ linux-2.6.14.7-vs/fs/reiserfs/inode.c	2006-09-19 01:41:46.000000000 +0400
@@ -206,7 +206,7 @@ static inline void set_block_dev_mapped(
 static int file_capable(struct inode *inode, long block)
 {
 	if (get_inode_item_key_version(inode) != KEY_FORMAT_3_5 ||	// it is new file.
-	    block < (1 << (31 - inode->i_sb->s_blocksize_bits)))	// old file, but 'block' is inside of 2gb
+	    block < (1 << (32 - inode->i_sb->s_blocksize_bits)))	// old file, but 'block' is inside of 2gb
 		return 1;
 
 	return 0;

_

  reply	other threads:[~2006-09-18 21:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-16 12:25 Files > 2GB and 3.6 version (after converting from 3.5) Pawel Jagoda
2006-09-17 19:24 ` Vladimir V. Saveliev
2006-09-17 21:20   ` Pawel Jagoda
2006-09-18 21:16     ` Vladimir V. Saveliev [this message]
2006-09-18 16:14 ` Jeff Mahoney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200609190116.24775.vs@namesys.com \
    --to=vs@namesys.com \
    --cc=pjagoda@bluenet.waw.pl \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.