diff options
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 | 
