fs: fix cwd setting for FAT/iso9660/extfs syslinux-4.00-pre18
authorH. Peter Anvin <hpa@zytor.com>
Thu, 11 Feb 2010 00:21:55 +0000 (16:21 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 11 Feb 2010 00:21:55 +0000 (16:21 -0800)
commit3db9073fdd604c253ab0ea0ce83373dc89f633f3
tree57484aeaa33308e99eaade1f2f7e2d217a0f4b71
parentddd58320f422651a418731d6f8bd75f61df43293
fs: fix cwd setting for FAT/iso9660/extfs

Fix the cwd setting for FAT, iso9660 and ext*fs.
In particular:

When FS_THISIND is set in the filesystem flags, only memoize the
parent directory iff we are currently doing a config file walk.  Use
this feature for ext*fs as well, this makes the pathbased branch fully
featured.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs.c
core/fs/ext2/ext2.c
core/fs/fat/fat.c
core/include/fs.h