search for: syslinux_fs_partition_read_handle

Displaying 1 result from an estimated 1 matches for "syslinux_fs_partition_read_handle".

2007 Apr 18
2
[Patch]: Drive/Partition and extensible filesystem support for syslinux
...read_disk(&disk_info, mbr, 0, 1); // Read mbr partition = PARTITION_ENTRY(mbr, 2); // 2 for partition 2 // this is the disk device/partition descriptor dfd.disk_info = &disk_info; dfd.partition = partition; // try opening libfat partition on the given partition descriptor fs = libfat_open(syslinux_fs_partition_read_handle, (intptr_t) &dfd); fd = fs->ops.open(fs, "MYFILE CFG", O_RDONLY); // This will give you a open descriptor // Now on, you can read files just like any other *nix file...! :) read(fd, mybuf, 128); // read 128 bytes from file.. OR you can use zlib funtionality of syslinux with:...