You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zdsfs fails when mounting zos volume that contains FDRABR.Vxxxxxx dataset
I executed
chccwdev -a raw_track_access=1 -e 0.0.7000
zdsfs /dev/dasdj /mnt
it fails with
error when extracting data sets from dasd /dev/dasdj: Protocol error
rc 71: extract data sets: creating dataset failed for /dev/dasdj
rc 71: create data sets: data set sequence number out of bounds failed for FDRABR.VAARS02
When mounting a volume without FDRABR.Vxxxxxx dataset mount finishes successfully
if (dspindex<0||dspindex >= MAXVOLUMESPERDS) {
// free(dsp);// return errorlog_add_message(// &dasd->log, NULL, EPROTO,printf(
"create data sets: data set sequence number ""out of bounds failed for %s\n",
ds->name);
dspindex=0;
}
I was puzzled by the fact that DS1DSSN (offset 0x2D) contains strange values further reading revealed that FDRABR.VAARS02 is likely an artifact of FDR/ABR (Automatic Backup and Restore)
I consider my proposal rather a hack than a solution.
What do you think?
The text was updated successfully, but these errors were encountered:
zdsfs fails when mounting zos volume that contains
FDRABR.Vxxxxxx
datasetI executed
it fails with
When mounting a volume without
FDRABR.Vxxxxxx
dataset mount finishes successfullyI made a dump of VTOC entry for
FDRABR.VAARS02
My investigation:
DSCB structure reveals
DS1FMTID
(offset0x2C
) has a value0xF1
ieDSCB Format-1
DS1VOLSQ
(offset0x33
) contains0xA10A=41226
ie outside of range0..MAXVOLUMESPERDS
(0..59
)Because the value in
DS1VOLSQ
is out of range, the code fails here https://github.com/ibm-s390-linux/s390-tools/blob/master/libzds/libzds.c#L1937. I could mount the volume when I setdspindex=0
instead of failing ieI was puzzled by the fact that
DS1DSSN
(offset0x2D
) contains strange values further reading revealed thatFDRABR.VAARS02
is likely an artifact of FDR/ABR (Automatic Backup and Restore)I consider my proposal rather a hack than a solution.
What do you think?
The text was updated successfully, but these errors were encountered: