Add new error codes B_PARTIAL_{READ,WRITE}
This commit is contained in:
parent
98759fe6e6
commit
dec78bb27c
@ -133,7 +133,9 @@ enum {
|
||||
B_LINK_LIMIT,
|
||||
B_BUSTED_PIPE,
|
||||
B_UNSUPPORTED,
|
||||
B_PARTITION_TOO_SMALL
|
||||
B_PARTITION_TOO_SMALL,
|
||||
B_PARTIAL_READ,
|
||||
B_PARTIAL_WRITE,
|
||||
};
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2007-2009, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2007-2014, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _ERRORS_H
|
||||
@ -115,6 +115,8 @@
|
||||
#define B_BUSTED_PIPE (B_STORAGE_ERROR_BASE + 13)
|
||||
#define B_UNSUPPORTED (B_STORAGE_ERROR_BASE + 14)
|
||||
#define B_PARTITION_TOO_SMALL (B_STORAGE_ERROR_BASE + 15)
|
||||
#define B_PARTIAL_READ (B_STORAGE_ERROR_BASE + 16)
|
||||
#define B_PARTIAL_WRITE (B_STORAGE_ERROR_BASE + 17)
|
||||
|
||||
/* POSIX Errors */
|
||||
#ifdef B_USE_POSITIVE_POSIX_ERRORS
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2007-2010, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||||
* Copyright 2007-2014, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _FSSH_API_WRAPPER_H
|
||||
@ -573,6 +573,8 @@
|
||||
#define B_BUSTED_PIPE FSSH_B_BUSTED_PIPE
|
||||
#define B_UNSUPPORTED FSSH_B_UNSUPPORTED
|
||||
#define B_PARTITION_TOO_SMALL FSSH_B_PARTITION_TOO_SMALL
|
||||
#define B_PARTIAL_READ FSSH_B_PARTIAL_READ
|
||||
#define B_PARTIAL_WRITE FSSH_B_PARTIAL_WRITE
|
||||
|
||||
/* POSIX Errors */
|
||||
#define E2BIG FSSH_E2BIG
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2007, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2007-2014, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _FSSH_ERRORS_H
|
||||
@ -111,6 +111,8 @@ enum {
|
||||
#define FSSH_B_BUSTED_PIPE (FSSH_B_STORAGE_ERROR_BASE + 13)
|
||||
#define FSSH_B_UNSUPPORTED (FSSH_B_STORAGE_ERROR_BASE + 14)
|
||||
#define FSSH_B_PARTITION_TOO_SMALL (FSSH_B_STORAGE_ERROR_BASE + 15)
|
||||
#define FSSH_B_PARTIAL_READ (FSSH_B_STORAGE_ERROR_BASE + 16)
|
||||
#define FSSH_B_PARTIAL_WRITE (FSSH_B_STORAGE_ERROR_BASE + 17)
|
||||
|
||||
/* POSIX Errors */
|
||||
#define FSSH_E2BIG (FSSH_B_POSIX_ERROR_BASE + 1)
|
||||
|
@ -146,6 +146,8 @@ struct error_pair {
|
||||
E(B_NO_PRINT_SERVER),
|
||||
E(B_OK),
|
||||
E(B_OS_ERROR_BASE),
|
||||
E(B_PARTIAL_READ),
|
||||
E(B_PARTIAL_WRITE),
|
||||
E(B_PARTITION_TOO_SMALL),
|
||||
E(B_PERMISSION_DENIED),
|
||||
E(B_POSIX_ERROR_BASE),
|
||||
|
@ -218,6 +218,10 @@ error_description(int error)
|
||||
return "Operation not supported";
|
||||
case B_PARTITION_TOO_SMALL:
|
||||
return "Partition too small to contain filesystem";
|
||||
case B_PARTIAL_READ:
|
||||
return "Data read partially";
|
||||
case B_PARTIAL_WRITE:
|
||||
return "Data written partially";
|
||||
|
||||
// Media Kit Errors
|
||||
|
||||
|
@ -91,6 +91,14 @@ status_t DecodeResult(status_t result) {
|
||||
str = "B_PARTITION_TOO_SMALL";
|
||||
break;
|
||||
|
||||
case B_PARTIAL_READ:
|
||||
str = "B_PARTIAL_READ";
|
||||
break;
|
||||
|
||||
case B_PARTIAL_WRITE:
|
||||
str = "B_PARTIAL_WRITE";
|
||||
break;
|
||||
|
||||
case B_BAD_MIME_SNIFFER_RULE:
|
||||
str = "B_BAD_MIME_SNIFFER_RULE";
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user