tests/vfs_fat_ramdisk: Switch to ioctl-based blockdev API.
This commit is contained in:
parent
9e0478a902
commit
9d0525182d
@ -21,11 +21,10 @@ class RAMFS:
|
|||||||
for i in range(len(buf)):
|
for i in range(len(buf)):
|
||||||
self.data[n*512+i] = buf[i]
|
self.data[n*512+i] = buf[i]
|
||||||
|
|
||||||
def sync(self):
|
def ioctl(self, op, arg):
|
||||||
pass
|
#print("ioctl(%d, %r)" % (op, arg))
|
||||||
|
if op == 4: # BP_IOCTL_SEC_COUNT
|
||||||
def count(self):
|
return len(self.data) // 512
|
||||||
return len(self.data) // 512
|
|
||||||
|
|
||||||
|
|
||||||
bdev = RAMFS(48)
|
bdev = RAMFS(48)
|
||||||
|
Loading…
Reference in New Issue
Block a user