marksalpeter / yaffs2utils

Automatically exported from code.google.com/p/yaffs2utils
GNU General Public License v2.0
0 stars 1 forks source link

Problems with zero Bytes files #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. # mkdir test
2. # cd test
3. # touch empty_file
4. # cd ..
5. # yaffs2utils-latest/src/mkyaffs2 test test_new.yaffs2 

What is the expected output? What do you see instead?

  mkyaffs2-0.1.3: image building tool for YAFFS2
  Processing directory test into image file test_new.yaffs2
  object 257, test/empty_file is a file
  error while parsing test/empty_file
  operation incomplete!

What version of the product are you using? On what operating system?
- mkyaffs2-0.1.3
- opensuse 11.2 
Linux linux-pdkc 2.6.31.12-0.2-desktop #1 SMP PREEMPT 2010-03-16 21:25:39 +0100 
i686 i686 i386 GNU/Linux

Please provide any additional information below.

After I've written one byte into the file empty_file,
the application works:

# yaffs2utils-latest/src/mkyaffs2 test test_new.yaffs2 
 mkyaffs2-0.1.3: image building tool for YAFFS2
 Processing directory test into image file test_new.yaffs2
 object 257, test/empty_file is a file
 operation complete.
 2 objects in 1 directories
 3 NAND pages

Best regards,
Markus

Original issue reported on code.google.com by markus.m...@ritter.info on 19 Jul 2010 at 10:03

GoogleCodeExporter commented 8 years ago

Original comment by penguin.lin on 20 Jul 2010 at 3:08

GoogleCodeExporter commented 8 years ago
Dear Markus:

Would you try applying the attached patch for this issue?
If it is worked, I will merge it into the next release.

Thanks a lot.

Original comment by penguin.lin on 20 Jul 2010 at 4:13

Attachments:

GoogleCodeExporter commented 8 years ago
I tried the patch, but in some cases I get an access violation:

# src/unyaffs2 root_qtopia-128M_empty.yaffs2 q1
unyaffs2-0.1.3: image extracting tool for YAFFS2                                

extracting image to "q1"                                                        

create directory .                                                              

create directory ./sbin

...

create file: ./root/.kde/share/config/konq-embedrc
create file: ./root/.kde/share/config/kdesktoprc
Speicherzugriffsfehler (means access violation)

Original comment by markus.m...@ritter.info on 20 Jul 2010 at 7:04

Attachments:

GoogleCodeExporter commented 8 years ago
Dear Markus:

This new patch should solve your problems temporarily.

I will try other beter solution and merge them into the next release.

Thanks for your reply.

Original comment by penguin.lin on 20 Jul 2010 at 11:10

Attachments:

GoogleCodeExporter commented 8 years ago
Thank you. The patch works fine for me. I tested it with a rootfs-Image
for the FriendlyArm platform:
http://www.friendlyarm.net/dl.php?file=linux-root_qtopia-128M_20100108.zip

Friendly regards,
Markus

Original comment by markus.m...@ritter.info on 20 Jul 2010 at 7:26

GoogleCodeExporter commented 8 years ago
Dear Markus:

Thanks for your test file.
It will be a good example for me to test the bugs fix!

Thanks a lot

Original comment by penguin.lin on 22 Jul 2010 at 1:00

GoogleCodeExporter commented 8 years ago
Fixed in r8.

Original comment by penguin.lin on 28 Jul 2010 at 8:55