summaryrefslogtreecommitdiff
path: root/ext4_utils
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2022-04-05 15:12:45 -0700
committerCole Faust <colefaust@google.com>2022-04-05 15:14:39 -0700
commit518046b34681849d44d8937aa739e11c01dc2313 (patch)
treeb07baa7649e665a8d2090d6cee11e214df6a63a8 /ext4_utils
parent36ba9c0a857130b45142091565193fa3e1ad4122 (diff)
downloadextras-518046b34681849d44d8937aa739e11c01dc2313.tar.gz
Convert build_verify_metadata to python 3
Also update some python 3 issues in mkuserimg_mke2fs. Bug: 203436762 Test: Presubmits Change-Id: Ib919d40c96d3c26d29d8c1b4af67300c4130ec42
Diffstat (limited to 'ext4_utils')
-rw-r--r--ext4_utils/mkuserimg_mke2fs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext4_utils/mkuserimg_mke2fs.py b/ext4_utils/mkuserimg_mke2fs.py
index 599e40ee..41ae8cd7 100644
--- a/ext4_utils/mkuserimg_mke2fs.py
+++ b/ext4_utils/mkuserimg_mke2fs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Copyright (C) 2018 The Android Open Source Project
#
@@ -165,7 +165,7 @@ def ConstructE2fsCommands(args):
if args.flash_erase_block_size:
mke2fs_extended_opts.append("stripe_width={}".format(
- int(args.flash_erase_block_size) / BLOCKSIZE))
+ int(args.flash_erase_block_size) // BLOCKSIZE))
if args.flash_logical_block_size:
# stride should be the max of 8kb and the logical block size
stride = max(int(args.flash_logical_block_size), 8192)