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 | |
| 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')
| -rw-r--r-- | tests/extmod/vfs_fat_fileio1.py | 4 | ||||
| -rw-r--r-- | tests/extmod/vfs_fat_fileio2.py | 4 | ||||
| -rw-r--r-- | tests/extmod/vfs_fat_more.py | 4 | ||||
| -rw-r--r-- | tests/extmod/vfs_fat_ramdisk.py | 4 | ||||
| -rw-r--r-- | tests/extmod/vfs_fat_ramdisklarge.py | 4 | 
5 files changed, 10 insertions, 10 deletions
| diff --git a/tests/extmod/vfs_fat_fileio1.py b/tests/extmod/vfs_fat_fileio1.py index 51cd76522..d0a5e4b73 100644 --- a/tests/extmod/vfs_fat_fileio1.py +++ b/tests/extmod/vfs_fat_fileio1.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 diff --git a/tests/extmod/vfs_fat_fileio2.py b/tests/extmod/vfs_fat_fileio2.py index 9b9a11e43..6721f9b93 100644 --- a/tests/extmod/vfs_fat_fileio2.py +++ b/tests/extmod/vfs_fat_fileio2.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 diff --git a/tests/extmod/vfs_fat_more.py b/tests/extmod/vfs_fat_more.py index 488697fa8..9505fd328 100644 --- a/tests/extmod/vfs_fat_more.py +++ b/tests/extmod/vfs_fat_more.py @@ -30,9 +30,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 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 diff --git a/tests/extmod/vfs_fat_ramdisklarge.py b/tests/extmod/vfs_fat_ramdisklarge.py index 6f9591031..4ac52b257 100644 --- a/tests/extmod/vfs_fat_ramdisklarge.py +++ b/tests/extmod/vfs_fat_ramdisklarge.py @@ -39,9 +39,9 @@ class RAMBDevSparse:      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 self.blocks -        if op == 5:  # BP_IOCTL_SEC_SIZE +        if op == 5:  # MP_BLOCKDEV_IOCTL_BLOCK_SIZE              return self.SEC_SIZE | 
