* Files > 2GB and 3.6 version (after converting from 3.5)
@ 2006-09-16 12:25 Pawel Jagoda
2006-09-17 19:24 ` Vladimir V. Saveliev
2006-09-18 16:14 ` Jeff Mahoney
0 siblings, 2 replies; 5+ messages in thread
From: Pawel Jagoda @ 2006-09-16 12:25 UTC (permalink / raw)
To: reiserfs-list
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?
Paul.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Files > 2GB and 3.6 version (after converting from 3.5)
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 16:14 ` Jeff Mahoney
1 sibling, 1 reply; 5+ messages in thread
From: Vladimir V. Saveliev @ 2006-09-17 19:24 UTC (permalink / raw)
To: pjagoda; +Cc: reiserfs-list
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?
>
> Paul.
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Files > 2GB and 3.6 version (after converting from 3.5)
2006-09-17 19:24 ` Vladimir V. Saveliev
@ 2006-09-17 21:20 ` Pawel Jagoda
2006-09-18 21:16 ` Vladimir V. Saveliev
0 siblings, 1 reply; 5+ messages in thread
From: Pawel Jagoda @ 2006-09-17 21:20 UTC (permalink / raw)
To: reiserfs-list
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Files > 2GB and 3.6 version (after converting from 3.5)
2006-09-17 21:20 ` Pawel Jagoda
@ 2006-09-18 21:16 ` Vladimir V. Saveliev
0 siblings, 0 replies; 5+ messages in thread
From: Vladimir V. Saveliev @ 2006-09-18 21:16 UTC (permalink / raw)
To: pjagoda; +Cc: reiserfs-list
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;
_
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Files > 2GB and 3.6 version (after converting from 3.5)
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-18 16:14 ` Jeff Mahoney
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Mahoney @ 2006-09-18 16:14 UTC (permalink / raw)
To: pjagoda; +Cc: reiserfs-list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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?
Unfortunately, if you've removed your backup of the original file, the
data is lost.
If you still have a copy of the original file, you can remove the copy
on the converted file system and replace it. The problem you're running
into is that converting a file system to v3.6 from v3.5 allows *new*
files to grow beyond the 2 GB limit, but not existing ones. The reason
for this is that converting the file system only indicates that it has
the ability to use files larger than that, but it doesn't update all the
existing files. If you create a new file, it uses the newer metadata
format that can describe much larger files.
- -Jeff
- --
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFFDsXvLPWxlyuTD7IRAheZAJ9hIwFztEGNgAu12XWunj42e7SYGACglca3
HQI+nvkGehJxOe9asRZweGg=
=NUad
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-09-18 21:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-09-18 16:14 ` Jeff Mahoney
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.