
A gluster volume could yield an ENOSPC condition seeing that a volume is full. This needed to handled correctly. Added error handling. BUG: 985253 https://bugzilla.redhat.com/show_bug.cgi?id=985253 Change-Id: I85472c0a81a354a2796327fead606da3a938d4bf Signed-off-by: Chetan Risbud <crisbud@redhat.com> Reviewed-on: http://review.gluster.org/5362 Reviewed-by: Peter Portante <pportant@redhat.com> Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
51 lines
1.1 KiB
Python
51 lines
1.1 KiB
Python
# Copyright (c) 2012-2013 Red Hat, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
|
|
class GlusterFileSystemOSError(OSError):
|
|
pass
|
|
|
|
|
|
class GlusterFileSystemIOError(IOError):
|
|
pass
|
|
|
|
|
|
class GlusterfsException(Exception):
|
|
pass
|
|
|
|
|
|
class FailureToMountError(GlusterfsException):
|
|
pass
|
|
|
|
|
|
class FileOrDirNotFoundError(GlusterfsException):
|
|
pass
|
|
|
|
|
|
class NotDirectoryError(GlusterfsException):
|
|
pass
|
|
|
|
|
|
class AlreadyExistsAsDir(GlusterfsException):
|
|
pass
|
|
|
|
|
|
class AlreadyExistsAsFile(GlusterfsException):
|
|
pass
|
|
|
|
|
|
class DiskFileNoSpace(GlusterfsException):
|
|
pass
|