Fixed iso_local_set_lfa_flags()
This commit is contained in:
parent
d78028fca4
commit
fbcacafb49
@ -897,7 +897,7 @@ int aaip_set_lfa_flags(char *path, uint64_t lfa_flags, int max_bit,
|
|||||||
ioctl_arg= 0;
|
ioctl_arg= 0;
|
||||||
else
|
else
|
||||||
ioctl_arg= lfa_flags;
|
ioctl_arg= lfa_flags;
|
||||||
ret= ioctl(fd, FS_IOC_SETFLAGS, ioctl_arg);
|
ret= ioctl(fd, FS_IOC_SETFLAGS, &ioctl_arg);
|
||||||
close(fd);
|
close(fd);
|
||||||
if(ret == -1) {
|
if(ret == -1) {
|
||||||
aaip_local_error("ioctl(FS_IOC_SETFLAGS)", path, errno, 0);
|
aaip_local_error("ioctl(FS_IOC_SETFLAGS)", path, errno, 0);
|
||||||
@ -912,4 +912,3 @@ int aaip_set_lfa_flags(char *path, uint64_t lfa_flags, int max_bit,
|
|||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user