USHORT in = COMPRESSION_FORMAT_DEFAULT; DWORD cbReturned; DeviceIoControl(hDevice,FSCTL_SET_COMPRESSION,&in,sizeof(in),NULL,0,&cbReturned,NULL);
ioctl(hDevice,FSCTL_SET_COMPRESSION,&value)
int flags = 0; ioctl(fd,FS_IOC_GETFLAGS,&flags); flags |= FS_COMPR_FL; flags &= ~FS_NOCOMP_FL; ioctl(fd,FS_IOC_SETFLAGS,&flags);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)