647 |
if (fchmod(handle, mode)) |
if (fchmod(handle, mode)) |
648 |
return STATUS_ACCESS_DENIED; |
return STATUS_ACCESS_DENIED; |
649 |
|
|
|
/* prevents start of writing if not enough space left on device */ |
|
|
if (STATFS_FN(g_rdpdr_device[pfinfo->device_id].local_path, &stat_fs) == 0) |
|
|
if (stat_fs.f_bsize * stat_fs.f_bfree < length) |
|
|
return STATUS_DISK_FULL; |
|
|
|
|
650 |
break; |
break; |
651 |
|
|
652 |
case 10: /* FileRenameInformation */ |
case 10: /* FileRenameInformation */ |
700 |
in_uint8s(in, 28); /* unknown */ |
in_uint8s(in, 28); /* unknown */ |
701 |
in_uint32_le(in, length); /* file size */ |
in_uint32_le(in, length); /* file size */ |
702 |
|
|
703 |
printf("FileEndOfFileInformation length = %d\n", length); |
/* prevents start of writing if not enough space left on device */ |
704 |
// ???????????? |
if (STATFS_FN(g_rdpdr_device[pfinfo->device_id].local_path, &stat_fs) == 0) |
705 |
|
if (stat_fs.f_bsize * stat_fs.f_bfree < length) |
706 |
|
return STATUS_DISK_FULL; |
707 |
|
|
708 |
unimpl("IRP Set File Information class: FileEndOfFileInformation\n"); |
//printf("FileEndOfFileInformation length = %d\n", length); |
709 |
|
// ???????????? |
710 |
|
//unimpl("IRP Set File Information class: FileEndOfFileInformation\n"); |
711 |
break; |
break; |
712 |
default: |
default: |
713 |
|
|