853 |
in_uint32_le(in, length); /* file size */ |
in_uint32_le(in, length); /* file size */ |
854 |
|
|
855 |
/* prevents start of writing if not enough space left on device */ |
/* prevents start of writing if not enough space left on device */ |
856 |
if (STATFS_FN(g_rdpdr_device[pfinfo->device_id].local_path, &stat_fs) == 0) |
if (STATFS_FN(pfinfo->path, &stat_fs) == 0) |
857 |
if (stat_fs.f_bfree * stat_fs.f_bsize < length) |
if (stat_fs.f_bfree * stat_fs.f_bsize < length) |
858 |
return RD_STATUS_DISK_FULL; |
return RD_STATUS_DISK_FULL; |
859 |
|
|