summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-12-03 22:15:29 +0000
committerJeremy Katz <katzj@redhat.com>2002-12-03 22:15:29 +0000
commit658dffc6e9afc0a382e6276ee818200aa2747a95 (patch)
treeeee927366c5d58e2cc06d1a03ab38af8ae3dea07 /isys
parentea8c45fee25cff6393ae04cbed3cfc860ec1aebc (diff)
downloadanaconda-658dffc6e9afc0a382e6276ee818200aa2747a95.tar.gz
anaconda-658dffc6e9afc0a382e6276ee818200aa2747a95.tar.xz
anaconda-658dffc6e9afc0a382e6276ee818200aa2747a95.zip
remove unused method
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/isys/isys.c b/isys/isys.c
index caf35645c..235e5a560 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -59,7 +59,6 @@ static PyObject * htAvailable(PyObject * s, PyObject * args);
static PyObject * summitAvailable(PyObject * s, PyObject * args);
static PyObject * createProbedList(PyObject * s, PyObject * args);
static PyObject * doCheckBoot(PyObject * s, PyObject * args);
-static PyObject * doCheckUFS(PyObject * s, PyObject * args);
static PyObject * doSwapon(PyObject * s, PyObject * args);
static PyObject * doSwapoff(PyObject * s, PyObject * args);
static PyObject * doPoptParse(PyObject * s, PyObject * args);
@@ -121,7 +120,6 @@ static PyMethodDef isysModuleMethods[] = {
{ "confignetdevice", (PyCFunction) doConfigNetDevice, METH_VARARGS, NULL },
{ "pumpnetdevice", (PyCFunction) doPumpNetDevice, METH_VARARGS, NULL },
{ "checkBoot", (PyCFunction) doCheckBoot, METH_VARARGS, NULL },
- { "checkUFS", (PyCFunction) doCheckUFS, METH_VARARGS, NULL },
{ "swapon", (PyCFunction) doSwapon, METH_VARARGS, NULL },
{ "swapoff", (PyCFunction) doSwapoff, METH_VARARGS, NULL },
{ "fbconprobe", (PyCFunction) doFbconProbe, METH_VARARGS, NULL },
@@ -522,26 +520,6 @@ static PyObject * doCheckBoot (PyObject * s, PyObject * args) {
return Py_BuildValue("i", magic == BOOT_SIGNATURE);
}
-#define UFS_SUPER_MAGIC 0x00011954
-
-static PyObject * doCheckUFS (PyObject * s, PyObject * args) {
- char * path;
- int fd, magic;
-
- if (!PyArg_ParseTuple(args, "s", &path)) return NULL;
-
- if ((fd = open (path, O_RDONLY)) == -1) {
- PyErr_SetFromErrno(PyExc_SystemError);
- return NULL;
- }
-
- return Py_BuildValue("i", (lseek64(fd, (off64_t) (8192 + 0x55c),
- SEEK_SET) >= 0 &&
- read(fd, &magic, 4) == 4 &&
- (magic == UFS_SUPER_MAGIC ||
- swab32(magic) == UFS_SUPER_MAGIC)));
-}
-
int swapoff(const char * path);
int swapon(const char * path, int priorty);