From Dan Kenigsberg danken@redhat.com:
Dan Kenigsberg has uploaded a new change for review.
Change subject: janitorial: drop unused storage.misc.getProcCtime ......................................................................
janitorial: drop unused storage.misc.getProcCtime
Should have been removed with commit bb50245.
Change-Id: Iaabc3ec4507ae3ca46c5a7f2aee130731ec2b1ca Signed-off-by: Dan Kenigsberg danken@redhat.com --- M lib/vdsm/storage/misc.py 1 file changed, 0 insertions(+), 11 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/38/77738/1
diff --git a/lib/vdsm/storage/misc.py b/lib/vdsm/storage/misc.py index d2499cd..da76a10 100644 --- a/lib/vdsm/storage/misc.py +++ b/lib/vdsm/storage/misc.py @@ -92,17 +92,6 @@ return True
-def getProcCtime(pid): - try: - stats = os.stat(os.path.join('/proc', str(pid))) - ctime = stats.st_ctime - except OSError: - raise OSError(os.errno.ESRCH, - "Could not find process with pid %s" % pid) - - return str(ctime) - - def readblock(name, offset, size): ''' Read (direct IO) the content of device 'name' at offset, size bytes