[Yaffs] 2GB file limit

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Andre Renaud
Date:  
To: yaffs
Subject: [Yaffs] 2GB file limit
At the moment, YAFFS has a 2GB file limit, and uses signed/unsigned int
in a bunch of places for the size.

Having a look through the code, it appears that file sizes are
calculated during the scan (yaffs2_scan_chunk), as well as read out of
the yaffs_obj_hdr.

If I wanted to move to > 2GB file size support, is there any way to do
this without breaking backwards compatibility? I assume I'd have to make
the 'file_size' attribute in yaffs_obj_hdr into an int64, as well as the
file_size/scanned_size/shrink_size attributes in yaffs_file_var.
Changing yaffs_obj_hdr will invalidate existing data on the NAND.

Does anyone have any comments on this?

Regards,
Andre

--
Bluewater Systems - An Aiotec Company

Andre Renaud                
          5 Amuri Park, 404 Barbadoes St
www.bluewatersys.com            PO Box 13 889, Christchurch 8013
www.aiotec.co.nz                New Zealand
Phone: +64 3 3779127            Freecall: Australia 1800 148 751
Fax:   +64 3 3779135            USA 1800 261 2934