Created
June 17, 2024 05:10
-
-
Save Windrow14/06188b09a6c80275de8c3ce6c12d3cbd to your computer and use it in GitHub Desktop.
Nuttx FAT Fseek Bug Reproduction Log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nsh> mkfatfs -F 32 -r /mnt /dev/virtblk0 | |
nsh> mount -t vfat /dev/virtblk0 /mnt | |
nsh> ls /mnt | |
/mnt: | |
nsh> | |
nsh> fs_rws_test /mnt/test w w 32768 | |
argc: 5 | |
filep: 0x4042a5b8 | |
32768 bytes to write | |
pos after write: 32768 | |
nsh> ls -l /mnt | |
/mnt: | |
-rw-rw-rw- 32768 test | |
nsh> fs_rws_test /mnt/test r s 0 32768 | |
argc: 6 | |
filep: 0x4042a5b8 | |
fseek returns -1 | |
pos after seek: 16384 | |
nsh> fs_rws_test /mnt/test r s 1 32768 | |
argc: 6 | |
filep: 0x4042a5b8 | |
fseek returns -1 | |
pos after seek: 16384 | |
nsh> fs_rws_test /mnt/test r s 2 0 | |
argc: 6 | |
filep: 0x4042a5b8 | |
fseek returns -1 | |
pos after seek: 16384 | |
nsh> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment