]> err.no Git - linux-2.6/commit
dlm: use fixed errno values in messages
authorDavid Teigland <teigland@redhat.com>
Tue, 15 Jan 2008 21:43:24 +0000 (15:43 -0600)
committerDavid Teigland <teigland@redhat.com>
Wed, 30 Jan 2008 17:04:42 +0000 (11:04 -0600)
commit861e2369e9e7e003677f99f22c4d1f05d3ed66d3
treec0eab73d677c4cd09acf35825d01c9000cd615f5
parent550283e30ccec5ddab9749a77b0022ebcaf0f3af
dlm: use fixed errno values in messages

Some errno values differ across platforms. So if we return things like
-EINPROGRESS from one node it can get misinterpreted or rejected on
another one.

This patch fixes up the errno values passed on the wire so that they
match the x86 ones (so as not to break the protocol), and re-instates
the platform-specific ones at the other end.

Many thanks to Fabio for testing this patch.
Initial patch from Patrick.

Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: Fabio M. Di Nitto <fabbione@ubuntu.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/util.c