1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/libmount/include/mount/error.h

52 lines
1.5 KiB
C
Raw Normal View History

/*
* Copyright (c) 2015 Jonas 'Sortie' Termansen.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* mount/error.h
* Error enumerations.
*/
2015-03-07 07:34:43 -05:00
#ifndef INCLUDE_MOUNT_ERROR_H
#define INCLUDE_MOUNT_ERROR_H
enum filesystem_error
{
FILESYSTEM_ERROR_NONE,
FILESYSTEM_ERROR_ABSENT,
FILESYSTEM_ERROR_UNRECOGNIZED,
FILESYSTEM_ERROR_ERRNO,
};
enum partition_error
{
PARTITION_ERROR_NONE,
PARTITION_ERROR_ABSENT,
PARTITION_ERROR_UNRECOGNIZED,
PARTITION_ERROR_ERRNO,
PARTITION_ERROR_INVALID,
PARTITION_ERROR_HEADER_TOO_LARGE,
PARTITION_ERROR_CHECKSUM,
PARTITION_ERROR_OVERLAP,
PARTITION_ERROR_END_BEFORE_START,
PARTITION_ERROR_BEFORE_USABLE,
PARTITION_ERROR_BEYOND_DEVICE,
PARTITION_ERROR_BEYOND_EXTENDED,
PARTITION_ERROR_BEYOND_USABLE,
PARTITION_ERROR_TOO_EXTENDED,
PARTITION_ERROR_BAD_EXTENDED,
PARTITION_ERROR_NONLINEAR_EXTENDED,
};
#endif