diff options
author | Damien George <damien.p.george@gmail.com> | 2019-10-29 12:25:30 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-10-29 14:17:29 +1100 |
commit | cfe1c5abf884027eb0a5792d5a980fee8757051a (patch) | |
tree | b590395b2879d3196e4024fa2c400ca0d42e9079 /tests/extmod/vfs_fat_ramdisk.py | |
parent | 7c8fb27f38b06b5067d913e9d57f87005445601b (diff) |
extmod/vfs: Rename BP_IOCTL_xxx constants to MP_BLOCKDEV_IOCTL_xxx.
Also rename SEC_COUNT to BLOCK_COUNT and SEC_SIZE to BLOCK_SIZE.
Diffstat (limited to 'tests/extmod/vfs_fat_ramdisk.py')
-rw-r--r-- | tests/extmod/vfs_fat_ramdisk.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/extmod/vfs_fat_ramdisk.py b/tests/extmod/vfs_fat_ramdisk.py index f6e5c64df..11b2df7f4 100644 --- a/tests/extmod/vfs_fat_ramdisk.py +++ b/tests/extmod/vfs_fat_ramdisk.py @@ -31,9 +31,9 @@ class RAMFS: def ioctl(self, op, arg): #print("ioctl(%d, %r)" % (op, arg)) - if op == 4: # BP_IOCTL_SEC_COUNT + if op == 4: # MP_BLOCKDEV_IOCTL_BLOCK_COUNT return len(self.data) // self.SEC_SIZE - if op == 5: # BP_IOCTL_SEC_SIZE + if op == 5: # MP_BLOCKDEV_IOCTL_BLOCK_SIZE return self.SEC_SIZE |