On Fri, 11 Nov 2005 20:50:15 +0100 Patrick Leslie Polzer <Patrick Leslie Polzer <[EMAIL PROTECTED]>> wrote:
> On Fri, 11 Nov 2005 16:18:55 -0200 > Otavio Salvador <Otavio Salvador <[EMAIL PROTECTED]>> wrote: > > > I'm interested to know if nobody knows any ready framework that we > > could use to make our life easier. > We can use dejagnu or a similar system for test organization. But > that does not relieve us from the task of constructing a system that > enables us to test. If nobody comes up with a better solution, the first and foremost requirement is appropriate on-disk storage of specific sectors along with device information. My proposal is this: 1. Have one file per sector (format: binary octets) Why? This approach has the advantage of easy accessibility with the viewer's favorite hex editor in his favorite format. 2. Have a master file specifying things like block size and the translation table 3. Optionally let Parted tar these files (would add an optional dependency to libtar and, also optional, gzip or bzip2. This would require a new source file and header, storage.[hc] with functions along these lines (sorted roughly by call order): PedStorage* ped_storage_new_from_directory (char*); PedStorage* ped_storage_new_from_tarball (char*); int ped_storage_read (PedStorage*); ped_storage_write_generic_info (PedStorage*, PedDevice*); ped_storage_read_generic_info (PedStorage*, PedDevice*); int ped_storage_add_sector (PedStorage*); uint8_t* ped_storage_get_sector (PedStorage*); int ped_storage_write (PedStorage*); int ped_storage_close (PedStorage* which); Do you think this is the right way to go? Leslie -- PGP-KID: 0x52D70289
pgpqT3zAWYUtL.pgp
Description: PGP signature
_______________________________________________ Bug-parted mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-parted
