diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2015-04-27 21:08:53 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2015-04-27 21:08:53 (GMT) |
commit | 2417fd7b63d59eef4d3fc1cd5a61c0fd0bbb526f (patch) | |
tree | ffddb0bbcdde2f9fc8bf8244c82707986dba3923 /tools/h5ls | |
parent | d292908e6f18ed329c1f4fd4b09f1bcfccb92c3e (diff) | |
download | hdf5-2417fd7b63d59eef4d3fc1cd5a61c0fd0bbb526f.zip hdf5-2417fd7b63d59eef4d3fc1cd5a61c0fd0bbb526f.tar.gz hdf5-2417fd7b63d59eef4d3fc1cd5a61c0fd0bbb526f.tar.bz2 |
[svn-r26935] Add dataset name to mapping output
Diffstat (limited to 'tools/h5ls')
-rw-r--r-- | tools/h5ls/h5ls.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c index 2f5412b..74f17d5 100644 --- a/tools/h5ls/h5ls.c +++ b/tools/h5ls/h5ls.c @@ -1755,6 +1755,7 @@ dataset_list2(hid_t dset, const char UNUSED *name) size_t cd_nelmts; /* filter client number of values */ size_t cd_num; /* filter client data counter */ char f_name[256]; /* filter/file name */ + char dset_name[256]; /* filter/file name */ char s[64]; /* temporary string buffer */ off_t f_offset; /* offset in external file */ hsize_t f_size; /* bytes used in external file */ @@ -1856,8 +1857,12 @@ dataset_list2(hid_t dset, const char UNUSED *name) for (next = 0; next < (unsigned) vmaps; next++) { ssize_out = H5Pget_virtual_filename(dcpl, next, NULL, 0); H5Pget_virtual_filename(dcpl, next, f_name, sizeof(f_name)); + ssize_out = H5Pget_virtual_dsetname(dcpl, next, NULL, 0); + H5Pget_virtual_dsetname(dcpl, next, dset_name, sizeof(dset_name)); h5tools_str_append(&buffer, " %-10s ", " "); print_string(&buffer, f_name, TRUE); + h5tools_str_append(&buffer, " "); + print_string(&buffer, dset_name, TRUE); h5tools_str_append(&buffer, "\n"); } h5tools_str_append(&buffer, " %-10s}\n", " "); |