tcopy


 
Thread Tools Search this Thread
Operating Systems Solaris tcopy
# 1  
Old 06-08-2007
Error tcopy

We are having IBM 3590 tape drive,while giving tcopy command to copy a data from one tape to another its giving error "can't allocate memory for tcopy",but some of the other tapes which was previously used was working.the os is solaris 5.8 64 bit.
# 2  
Old 06-08-2007
Check the sourcecode.... this is raised if:

Code:
        if ((buff = malloc(buf_size)) == NULL) {
      		(void) fprintf(stderr, "Can't allocate memory for tcopy\n");
      		return (4);
      	}


You can find more information about tcopy here

The complete source for tcopy.c you can find in the Solaris source repository


Hope this helps you out.

Regards,
Johan Louwers.

Quote:
Originally Posted by subbiahvin
We are having IBM 3590 tape drive,while giving tcopy command to copy a data from one tape to another its giving error "can't allocate memory for tcopy",but some of the other tapes which was previously used was working.the os is solaris 5.8 64 bit.
# 3  
Old 06-12-2007
Question Reply tcopy

where i can able to edit the source code,to use the drive.can u pls guide me
to get the solution.
# 4  
Old 06-12-2007
If you really really sure this is an error in tcopy you can donwload the source from the location I posted before, make the modifications and re-compile... however.... a better solution is to use the sourcecode to find out why this error is raised and try to find out if there is something else wrong...

editing the code is something you only want to do if you are a 100% sure this is a bug..... are you a 100% sure? If so you can also raise a bug at the development team to ask them if they can have a look and if te want to give it a try to solve it.


Regards,
Johan Louwers.

Quote:
Originally Posted by subbiahvin
where i can able to edit the source code,to use the drive.can u pls guide me
to get the solution.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question