FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 02-08-2011, 05:54 PM
David Lehman
 
Default Remove unused lochangefd functionality.

Related: rhbz#604614
---
isys/isys.c | 22 ----------------------
isys/isys.py | 10 ----------
2 files changed, 0 insertions(+), 32 deletions(-)

diff --git a/isys/isys.c b/isys/isys.c
index 6a2d18d..101d5d6 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -87,7 +87,6 @@ static PyObject * doSwapon(PyObject * s, PyObject * args);
static PyObject * doSwapoff(PyObject * s, PyObject * args);
static PyObject * doLoSetup(PyObject * s, PyObject * args);
static PyObject * doUnLoSetup(PyObject * s, PyObject * args);
-static PyObject * doLoChangeFd(PyObject * s, PyObject * args);
static PyObject * doWipeRaidSuperblock(PyObject * s, PyObject * args);
static PyObject * doGetRaidChunkSize(PyObject * s, PyObject * args);
static PyObject * doDevSpaceFree(PyObject * s, PyObject * args);
@@ -121,7 +120,6 @@ static PyMethodDef isysModuleMethods[] = {
{ "devSpaceFree", (PyCFunction) doDevSpaceFree, METH_VARARGS, NULL },
{ "wiperaidsb", (PyCFunction) doWipeRaidSuperblock, METH_VARARGS, NULL },
{ "getraidchunk", (PyCFunction) doGetRaidChunkSize, METH_VARARGS, NULL },
- { "lochangefd", (PyCFunction) doLoChangeFd, METH_VARARGS, NULL },
{ "losetup", (PyCFunction) doLoSetup, METH_VARARGS, NULL },
{ "unlosetup", (PyCFunction) doUnLoSetup, METH_VARARGS, NULL },
{ "mount", (PyCFunction) doMount, METH_VARARGS, NULL },
@@ -163,26 +161,6 @@ static PyObject * doUnLoSetup(PyObject * s, PyObject * args) {
return Py_None;
}

-/* XXX - msw */
-#ifndef LOOP_CHANGE_FD
-#define LOOP_CHANGE_FD 0x4C06
-#endif
-
-static PyObject * doLoChangeFd(PyObject * s, PyObject * args) {
- int loopfd;
- int targfd;
-
- if (!PyArg_ParseTuple(args, "ii", &loopfd, &targfd))
- return NULL;
- if (ioctl(loopfd, LOOP_CHANGE_FD, targfd)) {
- PyErr_SetFromErrno(PyExc_SystemError);
- return NULL;
- }
-
- Py_INCREF(Py_None);
- return Py_None;
-}
-
static PyObject * doLoSetup(PyObject * s, PyObject * args) {
int loopfd;
int targfd;
diff --git a/isys/isys.py b/isys/isys.py
index 4240c20..808dbbc 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -90,16 +90,6 @@ def losetup(device, file, readOnly = 0):
os.close(loop)
os.close(targ)

-def lochangefd(device, file):
- # FIXME: implement this as a storage.devices.Device subclass
- loop = os.open(device, os.O_RDONLY)
- targ = os.open(file, os.O_RDONLY)
- try:
- _isys.lochangefd(loop, targ)
- finally:
- os.close(loop)
- os.close(targ)
-
## Disable a previously setup loopback device.
# @param device The full path to an existing loopback device node.
def unlosetup(device):
--
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org