MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2WinntError

Function Ext2WinntError

Ext4Fsd/misc.c:410–522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410NTSTATUS Ext2WinntError(int rc)
411{
412 switch (rc) {
413
414 case 0:
415 return STATUS_SUCCESS;
416
417 case -EPERM:
418 case -EACCES:
419 return STATUS_ACCESS_DENIED;
420
421 case -ENOENT:
422 return STATUS_OBJECT_NAME_NOT_FOUND;
423
424 case -EFAULT:
425 return STATUS_ACCESS_VIOLATION;
426
427 case -ETOOSMALL:
428 return STATUS_BUFFER_TOO_SMALL;
429
430 case -EBADMSG:
431 case -EBADF:
432 case -EINVAL:
433 case -EFBIG:
434 return STATUS_INVALID_PARAMETER;
435
436 case -EBUSY:
437 return STATUS_DEVICE_BUSY;
438
439/* case -ENOSYS:
440 return STATUS_NOT_IMPLEMENTED;*/
441
442 case -ENOSPC:
443 return STATUS_DISK_FULL;
444
445 case -EOPNOTSUPP:
446 return STATUS_NOT_SUPPORTED;
447
448/* case -EDEADLK:
449 return STATUS_POSSIBLE_DEADLOCK;*/
450
451 case -EEXIST:
452 return STATUS_OBJECT_NAME_COLLISION;
453
454 case -EIO:
455 return STATUS_UNEXPECTED_IO_ERROR;
456
457 case -ENOTDIR:
458 return STATUS_NOT_A_DIRECTORY;
459
460 case -EISDIR:
461 return STATUS_FILE_IS_A_DIRECTORY;
462
463/* case -ENOTEMPTY:
464 return STATUS_DIRECTORY_NOT_EMPTY;*/
465
466 case -ENODEV:
467 return STATUS_NO_SUCH_DEVICE;

Callers 12

Ext2QueryEaFunction · 0.85
Ext2SetEaFunction · 0.85
Ext2QueryFileInformationFunction · 0.85
Ext2AddDotEntriesFunction · 0.85
Ext2OverwriteEaFunction · 0.85
Ext2NewBlockFunction · 0.85
Ext2NewInodeFunction · 0.85
Ext2FreeInodeFunction · 0.85
Ext2AddEntryFunction · 0.85
Ext2RemoveEntryFunction · 0.85
Ext2MapExtentFunction · 0.85
Ext2DoExtentExpandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected