Skip to content

Commit 28f1390

Browse files
committed
this wasnt ready yet
1 parent 74a3cbe commit 28f1390

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/filesystem/fat.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -415,29 +415,6 @@ static int file_stat(filesystem_t *fs, const char *path, struct stat *st) {
415415
return 0;
416416
}
417417

418-
static int file_utimes(filesystem_t *fs, const char *path, const struct timeval times[2]) {
419-
filesystem_fat_context_t *context = fs->context;
420-
char fpath[PATH_MAX];
421-
fat_path_prefix(fpath, context->id, path);
422-
423-
struct tm *mtime = localtime(&times[0].tv_sec);
424-
425-
FILINFO f = {
426-
.fdate = (WORD)(((mtime->tm_year - 80) * 512U) | mtime->tm_mon * 32U | mtime->tm_mday),
427-
.ftime = (WORD)(mtime->tm_hour * 2048U | mtime->tm_min * 32U | mtime->tm_sec / 2U)
428-
};
429-
430-
mutex_enter_blocking(&context->_mutex);
431-
FRESULT res = f_utime(fpath, &f);
432-
mutex_exit(&context->_mutex);
433-
434-
if (res != FR_OK) {
435-
return fat_error_remap(res);
436-
}
437-
438-
return 0;
439-
}
440-
441418
static int file_open(filesystem_t *fs, fs_file_t *file, const char *path, int flags) {
442419
BYTE open_mode;
443420
if (flags & O_RDWR)

0 commit comments

Comments
 (0)