|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [UNIKRAFT PATCH] lib/9pfs: Add getattr filesystem operation
Hi Costin, Thanks for the patch. See inline. Roxana On 31.10.2019 18:44, Costin Lupu wrote: `rc` should be initialized with 0. In no error case, the return value will be `-rc`, which can be any trashy value on the stack. I am not sure if this is the right way to do the copy.`sizeof(struct timespec)` is longer than `sizeof(stat.atime)` and in the end, in the destination we'll have some unexpected values. + memset(&(attr->va_ctime), 0, sizeof(struct timespec)); + +out: + return -rc; +} + #define uk_9pfs_seek ((vnop_seek_t)vfscore_vop_nullop) #define uk_9pfs_ioctl ((vnop_ioctl_t)vfscore_vop_einval) #define uk_9pfs_fsync ((vnop_fsync_t)vfscore_vop_nullop) -#define uk_9pfs_getattr ((vnop_getattr_t)vfscore_vop_nullop) #define uk_9pfs_setattr ((vnop_setattr_t)vfscore_vop_nullop) #define uk_9pfs_truncate ((vnop_truncate_t)vfscore_vop_nullop) #define uk_9pfs_link ((vnop_link_t)vfscore_vop_eperm) _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |