Changeset 86d0c263 in mainline


Ignore:
Timestamp:
2013-04-03T21:43:36Z (11 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d42a0bd
Parents:
220210c8
Message:

mkext2: Seek to the correct position before writing directory entry

fixes #527

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/mkext2.py

    r220210c8 r86d0c263  
    507507                self.pos = align_up(self.pos, bytes)
    508508       
     509        def set_pos(self, pos):
     510                "Set the current position"
     511               
     512                self.pos = pos
     513       
    509514        def pack(self):
    510515                "Pack the inode structure and return the result"
     
    581586                        if self.inode:
    582587                                self.prev_entry.write(self.inode)
     588                                self.inode.set_pos(self.pos)
    583589       
    584590        def add(self, entry):
Note: See TracChangeset for help on using the changeset viewer.