summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisksgilabel.c
diff options
context:
space:
mode:
authorKarel Zak2013-05-30 11:31:38 +0200
committerKarel Zak2013-09-16 16:46:58 +0200
commit9fc1f5d809bc10e875661197f6d6aa646dd30c9d (patch)
treebd3f5e2142c50b0b711a29aa58e4fc4b26d67cfc /fdisks/fdisksgilabel.c
parentfdisk: (sgi) remove global freelist (diff)
downloadkernel-qcow2-util-linux-9fc1f5d809bc10e875661197f6d6aa646dd30c9d.tar.gz
kernel-qcow2-util-linux-9fc1f5d809bc10e875661197f6d6aa646dd30c9d.tar.xz
kernel-qcow2-util-linux-9fc1f5d809bc10e875661197f6d6aa646dd30c9d.zip
fdisk: (sgi) cleanup devparams flags
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisksgilabel.c')
-rw-r--r--fdisks/fdisksgilabel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fdisks/fdisksgilabel.c b/fdisks/fdisksgilabel.c
index 726712e98..afd1f8072 100644
--- a/fdisks/fdisksgilabel.c
+++ b/fdisks/fdisksgilabel.c
@@ -933,8 +933,10 @@ static int sgi_create_disklabel(struct fdisk_context *cxt)
/* sectors/track */
sgilabel->devparam.bytes = cpu_to_be16(cxt->sector_size);
sgilabel->devparam.ilfact = cpu_to_be16(1);
- sgilabel->devparam.flags = cpu_to_be32(TRACK_FWD|\
- IGNORE_ERRORS|RESEEK);
+ sgilabel->devparam.flags = cpu_to_be32(
+ SGI_DEVPARAM_TRACK_FWD
+ | SGI_DEVPARAM_IGNORE_ERRORS
+ | SGI_DEVPARAM_RESEEK);
sgilabel->devparam.datarate = cpu_to_be32(0);
sgilabel->devparam.retries_on_error = cpu_to_be32(1);
sgilabel->devparam.ms_per_word = cpu_to_be32(0);