File Spacing issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

File Spacing issue

dcharnley
If your App happens to do a space file/block of 0, it will actually do 1 space forwards. If you add the check it will only attempt to space if the icount is non-zero.

In vtltape.c version 0.8.11 in the "SPACE" portion of the switch.

 if(icount != 0)
            resp_space(icount, code, sam_stat);
Reply | Threaded
Open this post in threaded view
|

Re: File Spacing issue

Mark Harvey
Administrator
Many thanks for the bug report and fix :)

Regards
Mark
Regards from Australia
Mark Harvey
nia
Reply | Threaded
Open this post in threaded view
|

Re: File Spacing issue

nia
Administrator
In reply to this post by dcharnley
dcharnley wrote
If your App happens to do a space file/block of 0, it will actually do 1 space forwards.
If so "Currently" , what would be the result ? Data Corruption !

Thanks

nia
Reply | Threaded
Open this post in threaded view
|

Re: File Spacing issue

Mark Harvey
Administrator
Re: Data corruption.

To put into perspective, this bug has been in existence since the release of 0.18. Nobody has reported data corruption due to this bug.

It is hit, only if the 'application' attempts to sync the data to the virtual tape by issuing a 'space 0 records/blocks'

NetBackup and NetWorker don't appear to do this, based on successful reports, neither do HP Dataprotector or TSM.

It might explain a bug report with BackupExec when spanning media (the backup fails). I'll have to check.

I'll get a new '0.18-12' release very soon.

Cheers
Mark
Regards from Australia
Mark Harvey