Changeset dba3e2c in mainline
- Timestamp:
- 2013-06-21T17:20:32Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4339f09, 8b863a62
- Parents:
- d87561c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkext2.py
rd87561c rdba3e2c 39 39 import uuid 40 40 from imgutil import * 41 42 if sys.version >= '3': 43 xrange = range 41 44 42 45 GDE_SIZE = 32 … … 530 533 data.flags = 0 531 534 blockconv = lambda x: 0 if x == None else x 532 data.direct_blocks = map(blockconv, self.direct)533 data.indirect_blocks = map(blockconv, self.indirect)535 data.direct_blocks = list(map(blockconv, self.direct)) 536 data.indirect_blocks = list(map(blockconv, self.indirect)) 534 537 data.version = 0 535 538 data.file_acl = 0 … … 567 570 head.inode_type = self.type 568 571 inode.write(head.pack()) 569 inode.write(self.name+'\0' )572 inode.write(self.name+'\0'.encode()) 570 573 inode.align_pos(4) 571 574
Note:
See TracChangeset
for help on using the changeset viewer.