mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 15:26:58 +02:00
Implement exfat_fs_rename() to rename or move files. This is used
by the 'mv' generic FS interface command. The rename implementation
for other filesystems was added recently and was not part of exfat
porting layer due to merge issue, which made 'mv' command crash,
fix this by adding the missing implementation.
Fixes: b86a651b64
("fs: exfat: Add U-Boot porting layer")
Signed-off-by: Marek Vasut <marex@denx.de>
26 lines
934 B
C
26 lines
934 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _EXFAT_H_
|
|
#define _EXFAT_H_
|
|
|
|
struct disk_partition;
|
|
|
|
int exfat_fs_opendir(const char *filename, struct fs_dir_stream **dirsp);
|
|
int exfat_fs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp);
|
|
int exfat_fs_ls(const char *dirname);
|
|
int exfat_fs_probe(struct blk_desc *fs_dev_desc,
|
|
struct disk_partition *fs_partition);
|
|
int exfat_fs_read(const char *filename, void *buf, loff_t offset,
|
|
loff_t len, loff_t *actread);
|
|
int exfat_fs_size(const char *filename, loff_t *size);
|
|
int exfat_fs_exists(const char *filename);
|
|
void exfat_fs_close(void);
|
|
void exfat_fs_closedir(struct fs_dir_stream *dirs);
|
|
|
|
int exfat_fs_unlink(const char *filename);
|
|
int exfat_fs_mkdir(const char *dirname);
|
|
int exfat_fs_write(const char *filename, void *buf, loff_t offset,
|
|
loff_t len, loff_t *actwrite);
|
|
int exfat_fs_rename(const char *old_path, const char *new_path);
|
|
|
|
#endif /* _EXFAT_H */
|