mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Fix coverity defects: CID 147452, 147447, 147446
coverity scan CID:147452, Type:Unchecked return value from library coverity scan CID:147447, Type:Unchecked return value from library coverity scan CID:147446, Type:Unchecked return value from library Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: cao.xuewen <cao.xuewen@zte.com.cn> Closes #5264
This commit is contained in:
parent
fad5fb01ad
commit
af4db70f36
@ -215,7 +215,7 @@ update_sharetab(sa_handle_impl_t impl_handle)
|
|||||||
fsync(temp_fd);
|
fsync(temp_fd);
|
||||||
fclose(temp_fp);
|
fclose(temp_fp);
|
||||||
|
|
||||||
rename(tempfile, "/etc/dfs/sharetab");
|
(void) rename(tempfile, "/etc/dfs/sharetab");
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct update_cookie_s {
|
typedef struct update_cookie_s {
|
||||||
|
@ -675,7 +675,7 @@ nfs_check_exportfs(void)
|
|||||||
|
|
||||||
unlink(nfs_exportfs_tempfile);
|
unlink(nfs_exportfs_tempfile);
|
||||||
|
|
||||||
fcntl(nfs_exportfs_temp_fd, F_SETFD, FD_CLOEXEC);
|
(void) fcntl(nfs_exportfs_temp_fd, F_SETFD, FD_CLOEXEC);
|
||||||
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
|
|
||||||
|
@ -1045,7 +1045,7 @@ kobj_get_filesize(struct _buf *file, uint64_t *size)
|
|||||||
void
|
void
|
||||||
delay(clock_t ticks)
|
delay(clock_t ticks)
|
||||||
{
|
{
|
||||||
poll(0, 0, ticks * (1000 / hz));
|
(void) poll(0, 0, ticks * (1000 / hz));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user