H5Pset_elink_acc_flags
(
hid_t lapl_id
,
unsigned flags
)
H5Pset_elink_acc_flags
is used to adjust the file access flag used to open files reached through
external links. This may be useful to, for example, prevent modifying
files accessed through an external link. Otherwise, the target file is
opened with whatever flag was used to open the parent.
H5Pset_elink_acc_flags
specifies the file access flag to use to open the target file of an
external link. This allows read-only access of files reached through an
external link in a file opened with write access, or vice-versa.
The library will normally use the file access flag used to open the parent
file as the file access flag for the target file. This function provides
a way to override that behaviour. The external link traversal callback
function set by H5Pset_elink_cb
can override the setting from
H5Pset_elink_acc_flags
.
hid_t lapl_id
| IN: Link access property list identifier | |||||||||||||
unsigned flags
| IN: The access flag for external link traversal.
Valid values include:
|
lapl_id
to open external link target files with read-only
access:
status = H5Pset_elink_acc_flags(lapl_id, H5F_ACC_RDONLY);
H5Pget_elink_acc_flags
,
H5Pset_elink_cb
,
H5Fopen
,
H5Lcreate_external
Release | Change |
1.8.3 | C function introduced in this release. |