*** libsmb_stat.c.orig Tue Jan 22 11:05:07 2013 --- libsmb_stat.c Tue Jan 22 17:27:06 2013 *************** *** 389,394 **** --- 389,408 ---- &actual_allocation_units, §ors_per_allocation_unit, &bytes_per_sector); + + /* use cli_dskattr as a fallback */ + if(status == NT_STATUS_INVALID_LEVEL) + { + int total, bsize, avail; + + status = cli_dskattr(cli, &bsize, &total, &avail); + + bytes_per_sector = bsize; + sectors_per_allocation_unit = 1; + total_allocation_units = total; + actual_allocation_units = avail; + } + if (NT_STATUS_IS_OK(status)) { /* ... then provide it */