From Dan Kenigsberg <dan...@redhat.com>: Dan Kenigsberg has uploaded a new change for review.
Change subject: janitorial: drop unused sotrage constants ...................................................................... janitorial: drop unused sotrage constants Change-Id: I5312ba85b9b1dfaea293668437bd14ec6f39c9df Signed-off-by: Dan Kenigsberg <dan...@redhat.com> --- M lib/vdsm/storage/iscsi.py M lib/vdsm/storage/lvm.py M lib/vdsm/storage/misc.py M lib/vdsm/storage/mount.py M lib/vdsm/storage/task.py M lib/vdsm/virt/vmstats.py M vdsm/storage/hsm.py M vdsm/storage/sdc.py 8 files changed, 0 insertions(+), 17 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/89/77689/1 diff --git a/lib/vdsm/storage/iscsi.py b/lib/vdsm/storage/iscsi.py index 59edcd2..223a7be 100644 --- a/lib/vdsm/storage/iscsi.py +++ b/lib/vdsm/storage/iscsi.py @@ -73,7 +73,6 @@ DEFAULT_TPGT = 1 -ISCSI_DEFAULT_PORT = 3260 IscsiSession = namedtuple("IscsiSession", "id, iface, target, credentials") diff --git a/lib/vdsm/storage/lvm.py b/lib/vdsm/storage/lvm.py index b01bb94..bedf364 100644 --- a/lib/vdsm/storage/lvm.py +++ b/lib/vdsm/storage/lvm.py @@ -50,8 +50,6 @@ log = logging.getLogger("storage.LVM") -LVM_DEFAULT_TTL = 100 - PV_FIELDS = ("uuid,name,size,vg_name,vg_uuid,pe_start,pe_count," "pe_alloc_count,mda_count,dev_size,mda_used_count") VG_FIELDS = ("uuid,name,attr,size,free,extent_size,extent_count,free_count," diff --git a/lib/vdsm/storage/misc.py b/lib/vdsm/storage/misc.py index d2499cd..c27eab6 100644 --- a/lib/vdsm/storage/misc.py +++ b/lib/vdsm/storage/misc.py @@ -57,7 +57,6 @@ IOUSER = "vdsm" DIRECTFLAG = "direct" -DATASYNCFLAG = "fdatasync" STR_UUID_SIZE = 36 UUID_HYPHENS = [8, 13, 18, 23] MEGA = 1 << 20 diff --git a/lib/vdsm/storage/mount.py b/lib/vdsm/storage/mount.py index 9d4072b..3939724 100644 --- a/lib/vdsm/storage/mount.py +++ b/lib/vdsm/storage/mount.py @@ -40,8 +40,6 @@ # Common vfs types -VFS_NFS = "nfs" -VFS_NFS4 = "nfs4" VFS_EXT3 = "ext3" MountRecord = namedtuple("MountRecord", "fs_spec fs_file fs_vfstype " diff --git a/lib/vdsm/storage/task.py b/lib/vdsm/storage/task.py index 726f901..16f303f 100644 --- a/lib/vdsm/storage/task.py +++ b/lib/vdsm/storage/task.py @@ -78,7 +78,6 @@ TEMP_EXT = ".temp" NUM_SEP = "." FIELD_SEP = "," -RESOURCE_SEP = "!" TASK_METADATA_VERSION = 1 ROLLBACK_SENTINEL = "rollback sentinel" diff --git a/lib/vdsm/virt/vmstats.py b/lib/vdsm/virt/vmstats.py index 8038fa2..8dd6b1c 100644 --- a/lib/vdsm/virt/vmstats.py +++ b/lib/vdsm/virt/vmstats.py @@ -31,9 +31,6 @@ from vdsm.virt.utils import isVdsmImage -_MBPS_TO_BPS = 10 ** 6 / 8 - - def produce(vm, first_sample, last_sample, interval): """ Translates vm samples into stats. diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py index 1109d3d..7526cf8 100644 --- a/vdsm/storage/hsm.py +++ b/vdsm/storage/hsm.py @@ -96,9 +96,6 @@ TYPE = "type" INITIALIZED = "initialized" CAPACITY = "capacity" -PATHLIST = "pathlist" - -STORAGE_CONNECTION_DIR = os.path.join(constants.P_VDSM_LIB, "connections/") QEMU_READABLE_TIMEOUT = 30 diff --git a/vdsm/storage/sdc.py b/vdsm/storage/sdc.py index 552b1b6..3c6b8ce 100644 --- a/vdsm/storage/sdc.py +++ b/vdsm/storage/sdc.py @@ -32,10 +32,6 @@ from vdsm.storage import multipath -# Default cache age until forcibly refreshed -DEFAULT_REFRESH_INTERVAL = 300 - - class DomainProxy(object): """ Keeps domain references valid even when underlying domain object changes -- To view, visit https://gerrit.ovirt.org/77689 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5312ba85b9b1dfaea293668437bd14ec6f39c9df Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Dan Kenigsberg <dan...@redhat.com> _______________________________________________ vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org