summaryrefslogtreecommitdiff
path: root/core/fs/getfssec.c
Commit message (Collapse)AuthorAgeFilesLines
* getfssec: update comment explaining next_extent() semanticsH. Peter Anvin2016-02-171-3/+8
| | | | | | | Update comments which explains next_extent() semantics to be slightly clearer, and also correct the statement that next_extent can be NULL. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* btrfs: print an error if finding compressed/encrypted dataH. Peter Anvin2010-07-051-0/+4
| | | | | | | | If we find compressed or encrypted data, print an error message instead of returning garbage. This is suboptimal, but at least handles the common subcase of an encrypted configuration file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: fs: get rid of the prev_extent memberH. Peter Anvin2010-02-281-16/+13
| | | | | | | | The prev_extent member was only ever used transiently; instead pass the new lstart in as an argument and leave the previous value of next_extent unmolested and thus can be used in-place. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: fix and simplify generic_getfssec()syslinux-4.00-pre29H. Peter Anvin2010-02-261-16/+9
| | | | | | | | | | Both simplify and fix generic_getfssec(). The previous version would occasionally request the same extent twice from the underlying layer. This is not a big deal for ext2fs for example, but is *very* expensive on FAT, where any out-of-order next_extent() call means walking the FAT from the beginning. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* fat: use generic_getfssec(), fix generic_getfssec(), add dprintfH. Peter Anvin2010-02-261-16/+60
| | | | | | | | | | | | | Use generic_getfssec() for the FAT filesystem. Do a bunch of calculations based on clusters rather than on sectors, so we don't have to do the same thing N times for N sectors per cluster. Fix boundary conditions in generic_getfssec(). Adjust iso9660 to match the resulting interface change. Add dprintf's to generic_getfssec() and a few other routines. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* fs: add generic getfssecH. Peter Anvin2010-02-261-0/+156
Add a generic getfssec method which operate on cached extents. This should avoid the need to each filesystem to implement its own getfssec loop. Signed-off-by: H. Peter Anvin <hpa@zytor.com>