Fix claim_posix_filesystems to work with bind mounts

claim_posix_filesystems() uses mount point path to find the file system
image for a given export path. Bind mounts will not be in the list of
file system images as they are actually duplicates. In other words,
mount point of a bind mount will not be in the list, and any export path
from a bind mount path fails to match any file system image.

This patch uses st_dev field from stat system call on the export path to
look for a matching file system image.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
(cherry picked from commit 6b6724ede22305024f7dac6d3db907719bd98a87)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Fix dbus_append_timestamp() for 32 bit systems.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reported-by: Krishna Harathi <kharathi@exablox.com>
Acked-by: Jim Lieb <lieb@sea-troll.net>
Reviewed-by: Venkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
(cherry picked from commit edda54826ad44e5c24d77073223ed949defbc6ab)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
export_id is uint16 bit integer, so we should pass DBUS_TYPE_UINT16

Passing DBUS_TYPE_INT32 will make the dbus code access 2 bytes of
incorrect memory space!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Jim Lieb <lieb@sea-troll.net>
(cherry picked from commit b66899a0e8e57d57567e51e4b3642c90b5ac5440)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Fix record_stats definition to accommodate its callers usage!

Fixed the record_stats() definition to comply with its callers! This
patch fixes some incorrect statistics reports (latency and queue wait
time).

Reported-by: Frank Geisenheiner <FGEISEN@de.ibm.com>
Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Jim Lieb <lieb@sea-troll.net>
(cherry picked from commit ea91f07931077f8d22105feda94e5201ff634c34)
Signed-off-by: Soumya Koduri <skoduri@redhat.com>