Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Update to newer version of upstream yaffs2 #1

Open
wants to merge 745 commits into
base: master
Choose a base branch
from

Conversation

garyp
Copy link

@garyp garyp commented Nov 30, 2011

This merges in changes from the upstream yaffs2 repository to bring it up to the same version that's used in the CyanogenMod 2.6.37.6 kernel. Along with changes to make the code work again, I also updated the style to match the massive renaming that happened in the upstream tree.

I've compiled this on my Nexus One and confirmed that it works correctly for a newly encrypted partition. I haven't tested against a partition encrypted with the old version of the WhisperYAFFS code to make sure that there are no compatibility issues.

Gary

cdhmanning and others added 30 commits September 27, 2010 12:24
The yaffs direct tests run in a tmpfs mount so that they run faster
and don't hit the disk.

The previous size was not enough to run all the tests in parallel.
Increase  to 2G bytes.

Signed-off-by: Charles Manning <[email protected]>
This is just cosmetics for the script that plots free data.

Signed-off-by: Charles Manning <[email protected]>
Make it more obvious what the differences are between the multi- and single-
version varints of the yaffs vfs glue code.

Signed-off-by: Charles Manning <[email protected]>
Signed-off-by: Timothy Manning <[email protected]>
A python based browser for working with yaffs direct.

More to follow...

Signed-off-by: Timothy Manning <[email protected]>
Change the python test library to use a file-backed emulator
for the yaffs2 mount rather than use a ram-based emulator.

Signed-off-by: Timothy Manning <[email protected]>
Fixed the Makefile by adding an extra symlink.
Gave the python browser the ablity to create files and folders.
Signed-off-by: Timothy Manning <[email protected]>
Signed-off-by: Charles Manning <[email protected]>
Signed-off-by: Charles Manning <[email protected]>
Signed-off-by: Charles Manning <[email protected]>
lstat gives us symlinks.

Signed-off-by: Charles Manning <[email protected]>
Did not handle hardlinks to symlinks properly.

Signed-off-by: Charles Manning <[email protected]>
Defined values such as S_IFMT have now been added to yaffsfs.py

There is a bug with st.st_mode returning 0 if the object scanned is a symlink.
This is currently been worked on.
The ability to open and see symlinks in the browser is not working because of this.

Signed-off-by: Timothy Manning <[email protected]>
the st.st_mode returning 0 for a symlink was caused by:
	result = yaffs_stat(fullname,byref(st))
been used insted of:
            result = yaffs_lstat(fullname,byref(st))
changing to the latter fixed this bug.
Everything works.
Signed-off-by: Timothy Manning <[email protected]>
Ensure that hard links are deferenced properly by doing it in
yaffsfs_FindObject.

Signed-off-by: Charles Manning <[email protected]>
Signed-off-by: Timothy Manning <[email protected]>
Merge in first set of yaffs name changes

Conflicts:
	direct/python/yaffs_python_helper.c
	direct/yaffsfs.c

Signed-off-by: Charles Manning <[email protected]>
cdhmanning and others added 30 commits December 3, 2010 11:32
This is needed to support dup().

Signed-off-by: Charles Manning <[email protected]>
This was in the python directory but is generally handy so move it into
the yaffs direct direcotory.

Signed-off-by: Charles Manning <[email protected]>
Better than shift counting.

Signed-off-by: Charles Manning <[email protected]>
Make the tracing a whole lot easier on the eye.

Signed-off-by: Charles Manning <[email protected]>
Signed-off-by: Timothy Manning <[email protected]>
Merge in HEAD (7b670d7) of
git://github.com/WhisperSystems/WhisperYAFFS, which seems to be
based off of commit b07263a.

In addition to normal merging, the following changes were made:
- Make changes in Makefile similar to those in Makefile.kernel.
- Apply changes from yaffs_vfs_glue.c in WhisperYAFFS to both
  yaffs_vfs.c and yaffs_vfs_multi.c.
- Some whitespace normalization in the modified chunks.
Merge WhisperYAFFS (based off of a much older commit) with the yaffs
version used in CyanogenMod 7.1.0's kernel. Apply the changes in
yaffs_mtdif2.c to both yaffs_mtdif2_{single,multi}.c.
- update to use new names of functions/variables
- switch from YMALLOC/YFREE to kmalloc/kfree
- drop unused includes
commit ddf33fe
Author: Timothy Manning <[email protected]>
Date:   Thu Dec 23 13:31:37 2010 +1300

    yaffs updated direct/timothy_tests/quick_tests
    Signed-off-by: Timothy Manning <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants