[−][src]Enum libzetta::zpool::ZpoolErrorKind
This is a hack to allow doing Eq
on errors because std::io::Error
doesn't implement
PartialEq
. Error descriptions are copied from ZpoolError. Might be out
of date.
Variants
zpool
not found in path. Open3 specific error.
Any other Io related error. Exists as a fallback. Presence of this error is a bug.
Trying to manipulate non-existent pool.
At least one vdev points to incorrect location. If vdev type is File then it means file not found.
Trying to create a new Zpool, but one or more vdevs already used in another pool.
Given topology failed validation.
Failed to parse value. Ideally you never see it, if you see it - it's a bug.
Device used in CreateZpoolRequest is smaller than 64M (or 128M on some platforms)
Permission denied to create zpool. This might happened because: a) you are not running it as root b) you are running it inside jail that isn't allowed to operate zfs
Trying to pause/stop a scrub that either never started or has already completed
Trying to take the only device offline.
Couldn't parse string to raid type.
Cannot attach a device to device that is part of raidz. It can only be attached to mirrors and top-level disks.
Operation on device that was not found in the pool.
Trying to detach a device from vdev without any valid replicas left.
Trying to add vdev with wrong replication level to existing zpool with different replication level. For example: mirror to zpool.
Cache device must be a disk or disk slice/partition.
Don't know (yet) how to categorize this error. If you see this error - open an issue.
Trait Implementations
impl Clone for ZpoolErrorKind
[src]
fn clone(&self) -> ZpoolErrorKind
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ZpoolErrorKind
[src]
impl Eq for ZpoolErrorKind
[src]
impl PartialEq<ZpoolErrorKind> for ZpoolErrorKind
[src]
fn eq(&self, other: &ZpoolErrorKind) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ZpoolErrorKind
[src]
impl StructuralPartialEq for ZpoolErrorKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for ZpoolErrorKind
impl Send for ZpoolErrorKind
impl Sync for ZpoolErrorKind
impl Unpin for ZpoolErrorKind
impl UnwindSafe for ZpoolErrorKind
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,