From e9f828ecfb2de86cef4a7d60e8d76edfc1e0d893 Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Wed, 4 Dec 2002 10:44:03 -0500 Subject: [svn-r6177] ./hdf5-devel/src/H5E.c Purpose: New Feature; Optimization; Clean-up (Merged from 1.4 branch) Description: There is no symbolic constant to pass to functions that take an optional object ID for when the caller wants to indicate no object ID. In the past the caller always passed a negative integer. GPFS performs poorly. The h5ls tool decides whether to list the file name in the output based on a compile-time choice, which isn't always optimal at run time. Solution: Added a symbolic constant H5I_INVALID_HID. Added code to tell the mmfsd of GPFS to forego byte range token prefetching. h5ls decides whether to print the file name at runtime based on the number of objects being listed. Platforms tested: SuSE Linux (arborea), gcc and mpich-1.2.4 SunOS (baldric), gcc 2002-12-03 22:50:23 Robb Matzke *: Added H5E_FCNTL minor error number. --- src/H5E.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/H5E.c b/src/H5E.c index 260ab1c..98bfe1d 100644 --- a/src/H5E.c +++ b/src/H5E.c @@ -109,6 +109,7 @@ static const H5E_minor_mesg_t H5E_minor_mesg_g[] = { {H5E_WRITEERROR, "Write failed"}, {H5E_CLOSEERROR, "Close failed"}, {H5E_OVERFLOW, "Address overflowed"}, + {H5E_FCNTL, "File control (fcntl) failed"}, /* Function entry/exit interface errors */ {H5E_CANTINIT, "Unable to initialize object"}, -- cgit v0.12