path: root/dts/src/arm/ste-dbx5x0.dtsi
diff options
authorAhmad Fatoum <>2023-02-02 14:27:34 +0100
committerSascha Hauer <>2023-02-03 08:59:51 +0100
commit0275cbae004d3f8510589d486645cd5d205cc525 (patch)
tree397787f4ebc953cba84e319efd20fc4910e23b21 /dts/src/arm/ste-dbx5x0.dtsi
parentb885cfc731c710eaf1efd55211b4b62fa5ade166 (diff)
fs: align write return codes with POSIXHEADmaster
Writing past end of a file results in a cryptic error code: barebox@board:/ cp /dev/zero /dev/mmc0.part write: Operation not permitted cp: Operation not permitted Because the cdev's truncate is not implemented and as such partition can't be increased in size. POSIX specifies EPERM as the correct return code for truncate(2) in such a situation, but for write(2) it is ENOSPC. Thus most truncate callbacks in barebox instead return ENOSPC, when according to POSIX, EPERM would have been the correct error code to propagate. Switching all truncate drivers is a bit more involved, so for now let's treat EPERM and ENOSPC instead when truncate fails to enlarge a file. Reported-by: Marco Felsch <> Reviewed-by: Marco Felsch <> Signed-off-by: Ahmad Fatoum <> Link: Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'dts/src/arm/ste-dbx5x0.dtsi')
0 files changed, 0 insertions, 0 deletions