xiaoxiang781216 commented on code in PR #12615:
URL: https://github.com/apache/nuttx/pull/12615#discussion_r1663937142
##########
fs/fat/fs_fat32.c:
##########
@@ -470,6 +474,271 @@ static int fat_close(FAR struct file *filep)
return ret;
}
+/****************************************************************************
+ * Name: fat_zero_cluster
+
+ * Description:
+ * Zero the data in a cluster. Use to zero the data in the gap between EOF
+ * and the write offset.
+ *
+ * Input Parameters:
+ * fs - A reference to the fat volume object instance
+ * cluster - Cluster index to be zeroed
+ * start - The starting position in the cluster
+ * end - The ending position in the cluster
+ *
+ * Returned Value:
+ * Zero (OK) is returned on success; A negated errno value is returned on
+ * any failure.
+ *
+ ****************************************************************************/
+
+static int fat_zero_cluster(FAR struct fat_mountpt_s *fs, int cluster,
+ int start, int end)
+{
+ uint8_t *buf;
Review Comment:
add FAR for ALL pointer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]