All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.23-rc1-mm2 Invalid argument on some files, depends on file contents?
@ 2007-08-01 21:57 Zan Lynx
  2007-08-01 23:48 ` Edward Shishkin
  0 siblings, 1 reply; 2+ messages in thread
From: Zan Lynx @ 2007-08-01 21:57 UTC (permalink / raw)
  To: ReiserFS Mailing List

[-- Attachment #1: Type: text/plain, Size: 1444 bytes --]

Several of my files have been doing this.  I really noticed it when I
ran a backup last night and there were many of these errors.  It has
also started affecting documents I really care about.

I was wondering if I somehow have compression enabled.  I didn't do it
on purpose! :)

I remember reading some comment about lzo being messed up and the
patches not included in mm yet?  This is rc1-mm2 so I thought it might
be fixed, but I guess not.

Here is a snippet of a shell session showing the problem.  It's a good
thing it didn't affect the OpenOffice format original!

$ cat * >/dev/null
cat: URL Database Design.doc.backup: Invalid argument
$ cp URL\ Database\ Design.doc.backup{,.test}
$ cat * >/dev/null
cat: URL Database Design.doc.backup: Invalid argument
cat: URL Database Design.doc.backup.test: Invalid argument
$ echo blah >> URL\ Database\ Design.doc.backup.test 
$ cat * >/dev/null
cat: URL Database Design.doc.backup: Invalid argument
$ ls -l
-rw-r--r-- 1 lynx users 286720 2007-07-31 18:16 URL Database Design.doc.backup
-rw-r--r-- 1 lynx users 286725 2007-08-01 15:48 URL Database Design.doc.backup.test
-rw-r--r-- 1 lynx users 154915 2007-07-31 16:53 URL Database Design.odt
-rw-r--r-- 1 lynx users 154915 2007-07-31 18:16 URL Database Design.odt.backup

As you can see, a copy shows the same problem.  But adding "blah\n" to
the end makes the problem go away...
-- 
Zan Lynx <zlynx@acm.org>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.6.23-rc1-mm2 Invalid argument on some files, depends on file contents?
  2007-08-01 21:57 2.6.23-rc1-mm2 Invalid argument on some files, depends on file contents? Zan Lynx
@ 2007-08-01 23:48 ` Edward Shishkin
  0 siblings, 0 replies; 2+ messages in thread
From: Edward Shishkin @ 2007-08-01 23:48 UTC (permalink / raw)
  To: Zan Lynx; +Cc: ReiserFS Mailing List

Zan Lynx wrote:

>Several of my files have been doing this.  I really noticed it when I
>ran a backup last night and there were many of these errors.  It has
>also started affecting documents I really care about.
>
>I was wondering if I somehow have compression enabled.  I didn't do it
>on purpose! :)
>
>  
>

If so, then definitely _no_.

>I remember reading some comment about lzo being messed up and the
>patches not included in mm yet?  This is rc1-mm2 so I thought it might
>be fixed, but I guess not.
>  
>

Reiser4 in rc1-mm2 is already ported to the new lzo, however this library
is not used by default (unix-file) plugin.

>Here is a snippet of a shell session showing the problem.  It's a good
>thing it didn't affect the OpenOffice format original!
>
>$ cat * >/dev/null
>cat: URL Database Design.doc.backup: Invalid argument
>$ cp URL\ Database\ Design.doc.backup{,.test}
>$ cat * >/dev/null
>cat: URL Database Design.doc.backup: Invalid argument
>cat: URL Database Design.doc.backup.test: Invalid argument
>$ echo blah >> URL\ Database\ Design.doc.backup.test 
>$ cat * >/dev/null
>cat: URL Database Design.doc.backup: Invalid argument
>$ ls -l
>-rw-r--r-- 1 lynx users 286720 2007-07-31 18:16 URL Database Design.doc.backup
>-rw-r--r-- 1 lynx users 286725 2007-08-01 15:48 URL Database Design.doc.backup.test
>-rw-r--r-- 1 lynx users 154915 2007-07-31 16:53 URL Database Design.odt
>-rw-r--r-- 1 lynx users 154915 2007-07-31 18:16 URL Database Design.odt.backup
>
>As you can see, a copy shows the same problem.  But adding "blah\n" to
>the end makes the problem go away...
>  
>

Yeah,  I have also noted this badness: if file size % page size == 0, 
then md5sum
complaints.

This is one more bug in new file_read: if vfs asks to read page out of 
file size,
then fs should fill it by zeros (reiser4 returns -EINVAL instead). I'll 
prepare the
patch a bit later..

Thanks,
Edward.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-01 23:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-01 21:57 2.6.23-rc1-mm2 Invalid argument on some files, depends on file contents? Zan Lynx
2007-08-01 23:48 ` Edward Shishkin

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.