nextid returns the next available seq number, but it doesn't pad id
number with 0, e.g.
./tools/nextid ext4
23
After the fix it returns:
./tools/nextid ext4
023
This eases the process of moving tests around in a script.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
xid = startid
while xid in xkeys:
xid += 1
- print('%s/%d' % (group, xid))
+ print('%s/%03d' % (group, xid))
if __name__ == '__main__':
if 'nextid' in sys.argv[0]: