Учебное пособие: Файловая система
wsprintf(
buffer,
" comp. length=%lu cluster=%lu total=%luK free=%luK\r\n",
complen, bps, bps*tc/1024, bps*fc/1024);
_lwrite(hf, buffer, lstrlen(buffer));
wsprintf(buffer, " file system ='%s' flags=", file_system);
s = buffer + lstrlen(buffer);
if (flags & FS_CASE_IS_PRESERVED) {
lstrcpy(s, "CASE_PRESERVED "); s+= lstrlen(s);}
if (flags & FS_CASE_SENSITIVE) {
lstrcpy(s, "CASE_SENSITIVE "); s+= lstrlen(s);}
if (flags & FS_UNICODE_STORED_ON_DISK) {
lstrcpy(s, "UNICODE "); s+= lstrlen(s);}
if (flags & FS_PERSISTENT_ACLS) {
lstrcpy(s, "ACL "); s+= lstrlen(s);}
if (flags & FS_FILE_COMPRESSION) {
lstrcpy(s, "MAY_COMPRESS "); s+= lstrlen(s);}
if (flags & FS_VOL_IS_COMPRESSED) {
lstrcpy(s, "COMPRESSED "); s+= lstrlen(s);}
lstrcpy(s, "\r\n");
_lwrite(hf, buffer, lstrlen(buffer));
} else {
// если информация о томе не получена, то просто сообщаем
lstrcpy(
buffer+lstrlen(buffer),
"' ***** NO VOLUME INFORMATION!\r\n");
_lwrite(hf, buffer, lstrlen(buffer));}}
delete temp;
// восстанавливаем режим обработки критических ошибок