Author: quozl Date: Mon Apr 23 08:36:30 2012 New Revision: 2949 URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2949
Log: ext2fs - avoid duplicate directory creation by mkdir, #11799
Modified: ofw/fs/ext2fs/methods.fth
Modified: ofw/fs/ext2fs/methods.fth ============================================================================== --- ofw/fs/ext2fs/methods.fth Mon Apr 23 03:46:26 2012 (r2948) +++ ofw/fs/ext2fs/methods.fth Mon Apr 23 08:36:30 2012 (r2949) @@ -14,6 +14,11 @@ ;
: $mkdir ( name$ -- error? ) + dirent-vars 2>r 2>r ( name$ ) + 2dup $find-file ( name$ error? ) + 2r> 2r> restore-dirent ( name$ error? ) + 0= if 2drop true exit then ( name$ ) + o# 40777 ($create) if true exit then
dirent-inode@ set-inode
openfirmware@openfirmware.info