HomeClusterLabs Projects

Med: tools/sfex_lib.c: sfex_init fails on a 64 bit big endian platform

Description

Med: tools/sfex_lib.c: sfex_init fails on a 64 bit big endian platform

sfex_init failed on a 64 bit big endian platform.
Message at that time is the following.
"ERROR: Failed to allocate aligned memory"

The same problem also occurs in sfex_stat,sfex_daemon that use the sfex_lib.

This issue caused by difference of the variable type.
The ioctl() system call return sector_size as a int type,
but sector_size is defined as a unsigned long type in the sfex_lib.

This patch has made the following changes to the sfex_lib.

  • add a new int value(sec_tmp) for ioctl() argument.
  • in after ioctl(), a new value(sec_tmp) is copied to sector_size as unsigned long.

Details

Provenance
higashik <kazuh@goo.jp>Authored on Sep 27 2012, 1:51 AM
Parents
rR989430c43753: Medium: oracle: connect as a regular user in monitor
Branches
Unknown
Tags
Unknown

Event Timeline