fs/hostfs: fix bug about getting error file size by fstat
Change-Id: I10a0d52da649e4c3138e5a2301bcb6525e2e3350 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
99a9d75cdd
commit
9980a1c27d
@ -116,9 +116,17 @@ begin_packed_struct struct hostfs_rpmsg_ioctl_s
|
|||||||
begin_packed_struct struct hostfs_rpmsg_fstat_s
|
begin_packed_struct struct hostfs_rpmsg_fstat_s
|
||||||
{
|
{
|
||||||
struct hostfs_rpmsg_header_s header;
|
struct hostfs_rpmsg_header_s header;
|
||||||
int32_t fd;
|
union
|
||||||
uint32_t reserved;
|
{
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
|
uint32_t reserved[16];
|
||||||
|
};
|
||||||
|
|
||||||
|
union
|
||||||
|
{
|
||||||
|
int32_t fd;
|
||||||
|
char pathname[0];
|
||||||
|
};
|
||||||
} end_packed_struct;
|
} end_packed_struct;
|
||||||
|
|
||||||
begin_packed_struct struct hostfs_rpmsg_ftruncate_s
|
begin_packed_struct struct hostfs_rpmsg_ftruncate_s
|
||||||
@ -169,17 +177,6 @@ begin_packed_struct struct hostfs_rpmsg_mkdir_s
|
|||||||
|
|
||||||
#define hostfs_rpmsg_rmdir_s hostfs_rpmsg_opendir_s
|
#define hostfs_rpmsg_rmdir_s hostfs_rpmsg_opendir_s
|
||||||
#define hostfs_rpmsg_rename_s hostfs_rpmsg_opendir_s
|
#define hostfs_rpmsg_rename_s hostfs_rpmsg_opendir_s
|
||||||
|
#define hostfs_rpmsg_stat_s hostfs_rpmsg_fstat_s
|
||||||
begin_packed_struct struct hostfs_rpmsg_stat_s
|
|
||||||
{
|
|
||||||
struct hostfs_rpmsg_header_s header;
|
|
||||||
union
|
|
||||||
{
|
|
||||||
struct stat buf;
|
|
||||||
uint32_t reserved[16];
|
|
||||||
};
|
|
||||||
|
|
||||||
char pathname[0];
|
|
||||||
} end_packed_struct;
|
|
||||||
|
|
||||||
#endif /* __FS_HOSTFS_HOSTFS_RPMSG_H */
|
#endif /* __FS_HOSTFS_HOSTFS_RPMSG_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user