FatFS
FR_DISK_ERR
is only used within FatFS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
FatFS
FR_DISK_ERR
FR_DISK_ERR value
Syntax
Show:
Summary
Declaration
from
ff.h:284
FR_DISK_ERR
;
Examples
References
from
examples
Code
Location
Referrer
FR_DISK_ERR
,
/* (1) A hard error occurred in the low level disk I/O layer */
ff.h:284
res
=
FR_DISK_ERR
;
ff.c:1074
sync_window()
res
=
FR_DISK_ERR
;
ff.c:1097
move_window()
if
(
disk_ioctl
(
fs
->
pdrv
,
CTRL_SYNC
,
0
)
!=
RES_OK
)
res
=
FR_DISK_ERR
;
ff.c:1135
sync_fs()
if
(
nxt
==
0xFFFFFFFF
)
return
FR_DISK_ERR
;
/* Disk error? */
ff.c:1463
remove_chain()
ncl
=
(
res
==
FR_DISK_ERR
)
?
0xFFFFFFFF
:
1
;
/* Failed. Generate error status */
ff.c:1616
create_chain()
if
(
sync_window
(
fs
)
!=
FR_OK
)
return
FR_DISK_ERR
;
/* Flush disk access window */
ff.c:1673
dir_clear()
return
(
n
==
fs
->
csize
)
?
FR_OK
:
FR_DISK_ERR
;
ff.c:1691
dir_clear()
if
(
clst
==
0xFFFFFFFF
)
return
FR_DISK_ERR
;
/* Disk error */
ff.c:1729
dir_sdi()
if
(
clst
==
0xFFFFFFFF
)
return
FR_DISK_ERR
;
/* Disk error */
ff.c:1775
dir_next()
if
(
clst
==
0xFFFFFFFF
)
return
FR_DISK_ERR
;
/* Disk error */
ff.c:1784
dir_next()
if
(
dir_clear
(
fs
,
clst
)
!=
FR_OK
)
return
FR_DISK_ERR
;
/* Clean up the stretched table */
ff.c:1785
dir_next()
if
(
disk_ioctl
(
fs
->
pdrv
,
GET_SECTOR_SIZE
,
&
SS
(
fs
)
)
!=
RES_OK
)
return
FR_DISK_ERR
;
ff.c:3441
mount_volume()
if
(
SS
(
fs
)
>
FF_MAX_SS
||
SS
(
fs
)
<
FF_MIN_SS
||
(
SS
(
fs
)
&
(
SS
(
fs
)
-
1
)
)
)
return
FR_DISK_ERR
;
ff.c:3442
mount_volume()
if
(
fmt
==
4
)
return
FR_DISK_ERR
;
/* An error occurred in the disk I/O layer */
ff.c:3451
mount_volume()
if
(
clst
==
0xFFFFFFFF
)
res
=
FR_DISK_ERR
;
ff.c:3903
f_open()
if
(
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
res
=
FR_DISK_ERR
;
ff.c:3913
f_open()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:3991
f_read()
if
(
disk_read
(
fs
->
pdrv
,
rbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4002
f_read()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4021
f_read()
if
(
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
/* Fill sector cache */
ff.c:4025
f_read()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4097
f_write()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4105
f_write()
if
(
disk_write
(
fs
->
pdrv
,
wbuff
,
sect
,
cc
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4117
f_write()
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4143
f_write()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
LEAVE_FF
(
fs
,
FR_DISK_ERR
)
;
ff.c:4187
f_sync()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4574
f_lseek()
if
(
clst
==
0xFFFFFFFF
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4598
f_lseek()
if
(
disk_write
(
fs
->
pdrv
,
fp
->
buf
,
fp
->
sect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
ff.c:4618
f_lseek()
if
(
disk_read
(
fs
->
pdrv
,
fp
->
buf
,
nsect
,
1
)
!=
RES_OK
)
ABORT
(
fs
,
FR_DISK_ERR
)
;
/* Fill sector cache */
ff.c:4622
f_lseek()
res
=
FR_DISK_ERR
;
break
;
ff.c:4886
f_getfree()
if
(
ncl
==
0xFFFFFFFF
)
res
=
FR_DISK_ERR
;
ff.c:4973
f_truncate()
res
=
FR_DISK_ERR
;
ff.c:4984
f_truncate()
if
(
dcl
==
0xFFFFFFFF
)
res
=
FR_DISK_ERR
;
/* Disk error? */
ff.c:5124
f_mkdir()
res
=
FR_DISK_ERR
;
break
;
ff.c:5652
f_expand()
if
(
disk_ioctl
(
drv
,
GET_SECTOR_COUNT
,
&
sz_drv
)
!=
RES_OK
)
return
FR_DISK_ERR
;
ff.c:5794
create_partition()
if
(
disk_write
(
drv
,
buf
,
0
,
1
)
!=
RES_OK
)
return
FR_DISK_ERR
;
/* Write it to the MBR */
ff.c:5915
create_partition()
if
(
disk_ioctl
(
pdrv
,
GET_SECTOR_SIZE
,
&
ss
)
!=
RES_OK
)
return
FR_DISK_ERR
;
ff.c:5965
f_mkfs()
if
(
ss
>
FF_MAX_SS
||
ss
<
FF_MIN_SS
||
(
ss
&
(
ss
-
1
)
)
)
return
FR_DISK_ERR
;
ff.c:5966
f_mkfs()
if
(
disk_read
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Load MBR */
ff.c:5991
f_mkfs()
if
(
disk_ioctl
(
pdrv
,
GET_SECTOR_COUNT
,
&
sz_vol
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6024
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
b_vol
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it to the VBR sector */
ff.c:6343
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6372
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
sect
,
(
UINT
)
n
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6382
f_mkfs()
if
(
disk_read
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Read the MBR */
ff.c:6406
f_mkfs()
if
(
disk_write
(
pdrv
,
buf
,
0
,
1
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
/* Write it back to the MBR */
ff.c:6408
f_mkfs()
if
(
disk_ioctl
(
pdrv
,
CTRL_SYNC
,
0
)
!=
RES_OK
)
LEAVE_MKFS
(
FR_DISK_ERR
)
;
ff.c:6418
f_mkfs()
case
FR_DISK_ERR
:
return
EIO
;
vfs_fat.c:321
fresult_to_errno()
res
=
FR_DISK_ERR
;
vfs_fat.c:832
vfs_fat_link()
res
=
FR_DISK_ERR
;
vfs_fat.c:840
vfs_fat_link()
return
FR_DISK_ERR
;
vfs_fat.c:1088
f_write_zero_mem()
res
=
FR_DISK_ERR
;
vfs_fat.c:1192
vfs_fat_truncate()
res
=
FR_DISK_ERR
;
vfs_fat.c:1300
vfs_fat_ftruncate()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
FR_DISK_ERR
is read by 25 functions:
All items filtered out
FR_DISK_ERR
sync_window()
move_window()
sync_fs()
remove_chain()
create_chain()
dir_clear()
dir_sdi()
dir_next()
mount_volume()
f_open()
f_read()
f_write()
f_sync()
f_lseek()
f_getfree()
f_truncate()
f_mkdir()
f_expand()
create_partition()
f_mkfs()
fresult_to_errno()
vfs_fat_link()
f_write_zero_mem()
vfs_fat_truncate()
vfs_fat_ftruncate()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out