summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-07-23 16:53:11 -0400
committerChris Lumens <clumens@redhat.com>2008-07-23 16:53:11 -0400
commit594864adce6e5ac58b914adcfa1b90aa33e739cb (patch)
tree9415f441a99aded174b985cefaae2efc8af65727 /isys
parent01a488111e60d8048cdb5afba6c83bb6b9f57e53 (diff)
downloadanaconda-594864adce6e5ac58b914adcfa1b90aa33e739cb.tar.gz
anaconda-594864adce6e5ac58b914adcfa1b90aa33e739cb.tar.xz
anaconda-594864adce6e5ac58b914adcfa1b90aa33e739cb.zip
MD_NEW_SIZE_BLOCKS no longer exists in newer kernel headers.
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/isys/isys.c b/isys/isys.c
index f33872c99..44a8557ae 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -692,7 +692,7 @@ static PyObject * doWipeRaidSuperblock(PyObject * s, PyObject * args) {
/* put the size in 1k blocks */
size >>= 1;
- if (lseek64(fd, ((off64_t) 1024) * (off64_t) MD_NEW_SIZE_BLOCKS(size), SEEK_SET) < 0) {
+ if (lseek64(fd, ((off64_t) 512) * (off64_t) MD_NEW_SIZE_SECTORS(size), SEEK_SET) < 0) {
PyErr_SetFromErrno(PyExc_SystemError);
return NULL;
}
@@ -724,7 +724,7 @@ static PyObject * doGetRaidSuperblock(PyObject * s, PyObject * args) {
/* put the size in 1k blocks */
size >>= 1;
- if (lseek64(fd, ((off64_t) 1024) * (off64_t) MD_NEW_SIZE_BLOCKS(size), SEEK_SET) < 0) {
+ if (lseek64(fd, ((off64_t) 512) * (off64_t) MD_NEW_SIZE_SECTORS(size), SEEK_SET) < 0) {
PyErr_SetFromErrno(PyExc_SystemError);
return NULL;
}
@@ -762,7 +762,7 @@ static PyObject * doGetRaidChunkSize(PyObject * s, PyObject * args) {
/* put the size in 1k blocks */
size >>= 1;
- if (lseek64(fd, ((off64_t) 1024) * (off64_t) MD_NEW_SIZE_BLOCKS(size), SEEK_SET) < 0) {
+ if (lseek64(fd, ((off64_t) 512) * (off64_t) MD_NEW_SIZE_SECTORS(size), SEEK_SET) < 0) {
PyErr_SetFromErrno(PyExc_SystemError);
return NULL;
}