1. Patch SG0001302 Release Note
1. Patch_SG0001302_Release_Note
This release note describes patch SG0001302 to IRIX 5.3 with
XFS and IRIX 5.3 Indy R5000 with XFS.
1.1 Supported Hardware Platforms
1.1 Supported_Hardware_Platforms
This patch contains bug fixes to IRIX 5.3 with XFS and IRIX
5.3 Indy R5000 with XFS. It may be installed on any system
running one of these releases. The software cannot be
installed on other configurations.
1.2 Supported Software Platforms
1.2 Supported_Software_Platforms
This patch contains bug fixes for IRIX 5.3 with XFS (version
1021725920) and IRIX 5.3 Indy R5000 with XFS. The software
cannot be installed on other configurations. Patch
SG0000371 (the "XFS Rollup patch for 5.3-XFS") or any patch
that replaces patch SG0000371 (i.e. subsequent XFS Rollup
patches) must be installed for the software contained in
this patch to operate properly. The current XFS Rollup
patch is patch SG0001264.
1.3 Bugs Fixed by Patch SG0001302
1.3 Bugs_Fixed_by_Patch_SG0001302
This patch contains fixes for the following bugs in IRIX 5.3
with XFS and IRIX 5.3 Indy R5000 with XFS. This patch
contains updates to the Data Management Interface (DMI),
also known as the DMAPI. It replaces (and is a superset of)
patch 221. It also contains bug fixes required to bring
IRIX 5.3 with XFS into compliance with the FIPS 151-2
(POSIX) standard. Bug numbers from Silicon Graphics bug
tracking system are included for reference.
Bugs affecting FIPS 151-2 compliance:
o Parentheses are added around the fileno macros in
stdio.h, in compliance with PCTS FIPS 151-2, Section
LS, fileno() (bug 236037).
o According to POSIX.1, the abort() function should
override blocking the SIGABRT signal. Fixed abort() to
follow that behavior in compliance with PCTS FIPS 151-
2, Section LS, Assertions 8-9 (bugs 229137, 240012).
o Fixed a bug that prevented correct file I/O on file
structures obtained by doing multiple fdopen()s on the
same file descriptor. (bug 255347).
o The fmtmsg routine does not correctly parse the
SEV_LEVEL environment variable. When the SEV_LEVEL
variable has a wrong severity string format the routine
is supposed to ignore the format but instead considers
the format of the severity string as valid and prints
it. This is a fix for a MIPS ABI test failure (bug
279557).
o Fixed a problem with the getdate() routine when the
DATEMSK file had a input specification of the form "%t"
or "%n" and a tab or a newline were passed in the
input string. This is a fix for a MIPS ABI failure (bug
279546).
o The nftw routine when called with a relative path name
as in nftw("./t1.d",.....) returned the value of the
offset of the name from the pathname as 0 instead of
2.Fixed the nftw.c file to set the value of base
correctly. This is a fix for a MIPS ABI problem (bug
279504).
o There was a problem with the .netrc file parsing which
resulted in a segmentation fault when rexec was used.
The fix is in the file
irix/lib/libc/src/net/ruserpass.c. (bug 277396).
Other bugs:
o The IRIX 5.3 release of IDO (IRIX Development Option)
does not contain certain libraries, header files, and
manual pages which pertain to the IRIX 5.3 with XFS
release. These changes are useful for programmers
developing applications for the IRIX 5.3 with XFS
release. (Bug #253016)
o The Data Management Interface in IRIX 5.3 with XFS was
incomplete. (Bug #258113)
o Calling dm_get_allocinfo with a request size of one
causes the kernel to panic. (Bug #276480)
o Using the setbuf() standard I/O routine on a standard
I/O stream could result in the data written to that
stream being corrupted. (Bug #331053)
The next chapter of these release notes contains information
specific to the DMAPI. This interface is described in the
document titled "Interface Specification for the Data
Management Application Programming Interface" (referred to
hereafter as the "Interface Specification"). It may be
found in the release notes directory for this patch
(/usr/relnotes/patchSG0001302) in the file ifspec.ps.Z.
This file contains compressed postscript. To print it,
uncompress it using uncompress and send it to any postscript
printer with any printer spooling command. The document is
approximately 170 pages long. It is version 2.1, dated
March 1995, and is the basis for the current implementation.
1.4 Subsystems Included in Patch SG0001302
1.4 Subsystems_Included_in_Patch_SG0001302
This patch release includes these subsystems:
o patchSG0001302.eoe1_sw.irix_lib
o patchSG0001302.eoe1_sw.unix
o patchSG0001302.eoe2_sw.dmi
o patchSG0001302.dev_hdr.lib
o patchSG0001302.dev_sw.lib
o patchSG0001302.dev_sw.irix_speclibs
o patchSG0001302.dev_man.irix_lib
1.5 Installation Instructions
1.5 Installation_Instructions
Because you want to install only the patches for problems
you have encountered, patch software is not installed by
default. After reading the descriptions of the bugs fixed
in this patch (see Section 1.3), determine the patches that
meet your specific needs.
If, after reading Sections 1.1 and 1.2 of these release
notes, you are unsure whether your hardware and software
meet the requirements for installing a particular patch, run
inst. The inst program does not allow you to install
patches that are incompatible with your hardware or
software.
Patch software is installed like any other Silicon Graphics
software product. Follow the instructions in your Software
Installation Administrator's Guide to bring up the miniroot
form of the software installation tools.
Follow these steps to select a patch for installation:
1. At the Inst> prompt, type
install patchSGxxxxxxx
where xxxxxxx is the patch number.
2. Initiate the installation sequence. Type
Inst> go
3. You may find that two patches have been marked as
incompatible. (The installation tools reject an
installation request if an incompatibility is
detected.) If this occurs, you must deselect one of
the patches.
Inst> keep patchSGxxxxxxx
where xxxxxxx is the patch number.
4. After completing the installation process, exit the
inst program by typing
Inst> quit
1.6 Patch Removal Instructions
1.6 Patch_Removal_Instructions
To remove a patch, use the versions remove command as you
would for any other software subsystem. The removal process
reinstates the original version of software unless you have
specifically removed the patch history from your system.
versions remove patchSGxxxxxxx
where xxxxxxx is the patch number.
To keep a patch but increase your disk space, use the
versions removehist command to remove the patch history.
versions removehist patchSGxxxxxxx
where xxxxxxx is the patch number.
1.7 Known Problems
1.7 Known_Problems
2. DMAPI_Implementation_Notes
The following sections describe details of this
implementation that differ in some respect from the
Interface Specification.
Note that this interface is newly created, still under
development, and not yet in use by released products as of
this writing. While due effort and consideration will be
given to maintaining compatibility with this version in
subsequent releases, compatibility between this release and
future releases is not guaranteed. This applies both to the
basis for this implementation as described in the Interface
Specification and to the deviations in this particular
implementation as described here.
2.1 Implementation_Differences
This section describes features that have not been
implemented exactly according to their description in the
Interface Specification.
o The header file is <sys/dmi.h>, not <dmapi.h>.
o Since multiple managed regions aren't supported in this
release, dm_set_eventlist() allows one to set the read,
write, and truncate events directly on a file.
o The mask argument is ignored in the dm_get_bulkattr(),
dm_get_fileattr(), and dm_get_dirattrs() functions.
All information is returned for every call to any of
these functions.
o The dt_change field is not present in the dm_stat
structure.
o The buflen and respbufp fields are not present in the
dm_respond_event() function.
o dm_write_invis() does buffered, not synchronous writes.
o Asynchronous events are not sent when an operation
fails. This applies to the postcreate, postremove,
postrename, postlink, postsymlink, attribute, and
destroy events. These events should be used solely to
determine actual changes in the file system.
o There are no access rights. Instead, the functions
dm_request_right(), dm_release_right(), and
dm_query_right() are replaced by dm_assoc_handle(),
dm_disassoc_handle(), and dm_query_token()
respectively. These replacement functions perform the
same task as the replaced versions with regards to
associating/disassociating a handle with a token. The
sole difference is the absence of the access right
parameter, which controlled locking of the referenced
object. In this implementation no locks are held on
any objects by a process sending an event. Since a
process sending an event may be blocked for various
reasons (including waiting for the receiving DMAPI
application to reply to the event), the possibility of
a lock being held indefinitely is eliminated. This
also eliminates the application's need to determine the
locking state of an object, and allows it to use the
interfaces freely without worrying about blocking due
to a lock it wasn't aware of. The absence of locks
requires a different programming paradigm however.
Applications must enable and receive events on objects
that they wish to have exclusive access to. For
example, to prevent access to a file's data, an
application would enable the read, write, and truncate
events on the file, and not respond to any of them
until it was prepared to allow access to the file
again.
2.2 Unimplemented_Features
This section contains a list of the items in the Interface
Specification that are not implemented in this release.
Items listed here are planned for inclusion in future
releases.
o The functions dm_get_mountinfo(), dm_getall_disp(), and
dm_move_event().
o All of the functions related to extended attributes:
dm_clear_inherit(), dm_get_dmattr(),
dm_getall_dmattr(), dm_getall_inherit(),
dm_remove_dmattr(), dm_set_dmattr(), and
dm_set_inherit().
2.3 Additions
Additions not described in the Interface Specification are
contained here.
o The dt_igen field has been added to the dm_stat_t
structure. It contains the inode generation number.
o A function of last resort, open_by_handle() has been
added. Its prototype is:
int open_by_handle (void *hanp, size_t hlen, int rw);
The rw argument must be one of O_RDONLY or O_RDWR as in
the oflag argument to open(2), The return value is a
valid file descriptor or -1 on error. I/O operations
done using a file descriptor obtained via
open_by_handle() will not update file access or change
times. This function is provided as a workaround for
situations where the handle-based DMAPI interface is
discovered to be insufficient. Any such situations
should be reported so that the necessary functionality
may be included in the interface.
2.4 Known_Problems_and_Limitations
This section contains limitations that will be removed in
future releases.
o The dm_get_dirattrs() function will not return more
than 30k bytes of information no matter how large the
buffer supplied to it.
o The dm_get_events() function returns at most one event
per invocation.
o Only one managed region may be established per file.
This managed region must encompass the entire file.
o dm_punch_hole() requires the range freed to extend to
the end of the file. dm_probe_hole() will properly
return an offset and length corresponding to this
limitation. This restriction is a consequence of being
limited to one managed region.
o The offset and length given in the read and write
events are the values supplied to the file system, not
those representing the actual blocks the file system
may read or write in response.
o Attempting to unmount a file system that has the
unmount event enabled will cause the unmount to block
uninterruptibly until the unmount event is responded
to. This means that attempting to shutdown the system
when there are mounted file systems with unmount
enabled will cause the system to hang. (The shutdown
process kills all user processes, including whatever
process may have handled unmount events, leaving no one
to respond to unmount events.)
2.5 Implementation-defined_Options
This section describes implementation decisions made for
items listed in the Interface Specification as
"implementation defined".
o The debut event is not supported.
o Event messages are never dropped. When a message can't
be queued immediately, the generating process is
blocked until it's interrupted or the message is
queued. This applies to both synchronous and
asynchronous event messages.
o Processes blocked while attempting to queue an event
message on a session are interruptible if they are
blocked waiting for a session that is willing accept
the event message. Processed blocked after queueing an
event message on a session and waiting for a response
are not interruptible.
o There is a limit of 2048 undelivered messages per
session. Attempting to add more event messages to a
session that has reached the limit will cause the
process generating the event to block until previously
queued messages are delivered.
o Managed regions and event lists (enabled events) are
persistent.
o In all synchronous event messages using the
dm_namesp_event structure, the handle given in
ne_handle1 will be associated with the message's token.
Only one handle may be associated with each token.
2.6 Additional_Information
This section contains further explanation of features
implemented according to the Interface Specification, but
whose behavior was not specified fully.
o All DMAPI functions (except for dm_get_fileattr)
require root permissions.
o The DMAPI is supported only on XFS file systems. The
event generation feature of the DMAPI is enabled at
mount time by using the -o dmi option to mount(2).
This option must be specified for each file system.
File systems with existing DMAPI managed files that are
mounted without the -o dmi option are completely
accessible by all normal means and no events will be
generated. This is normally extremely undesirable
because programs accessing files may read or write at
locations where data has been migrated. However,
system administrators may find mounting without the -o
dmi option useful in recovering from a malfunctioning
DMAPI application.
o The DMAPI functions are in the libdm.a library. Use
the -ldm compiler/linker option to access the library.
o For event messages using the dm_namesp_event structure,
the handle associated with the token is always handle 1
(i.e. the handle located by the ne_handle1 field of the
dm_namesp_event structure).
o On sending the mount event: If there are no sessions
at the time a file system is mounted, or if all extant
sessions respond to the mount event with
DM_RESP_DONTCARE, then the mount will proceed. The
only case where a mount will fail due to the result of
delivering or attempting to deliver the mount event is
when an application responds to the mount event with
DM_RESP_ABORT.
No Requirements Information Available.
These checksums help to provide a 'signature' for the patch inst image which can be used to authenticate other inst images. You can obtain this kind of output by running sum -r on the image (from the command line):
60742 7 patchSG0001302 58078 85 patchSG0001302.dev_hdr 33758 297 patchSG0001302.dev_man 56910 2053 patchSG0001302.dev_sw 41513 1563 patchSG0001302.eoe1_sw 09023 1357 patchSG0001302.eoe2_sw 22249 32 patchSG0001302.idb
The following lists the files which get installed from each subsystem in the patch:
The size of the patch is 3Mb.
Installation instruction.