mktape error: Structure of MAM incorrect size: 1016

GNU General Public License Linux disk based Virtual Tape Library
Developed by Mark Harvey - markh794@gmail.com
To get started, go to: http://sites.google.com/site/linuxvtl2/

Re: mktape error: Structure of MAM incorrect size: 1016

Postby nia » Sun Jan 10, 2010 5:51 am

Yes, Good Job Frank. It worked for me as well. :)
~nia
User avatar
nia
Forum Founder
 
Posts: 242
Joined: Sat Dec 12, 2009 12:51 pm
Location: MI, USA

Re: mktape error: Structure of MAM incorrect size: 1016

Postby bartoque » Sun Feb 07, 2010 6:44 pm

Newest release mhvtl-2010-01-28.tgz/mhvtl-0.18-2...rpm now has now the following set:

Code: Select all
/* Pad to keep MAM to 1024 bytes */
   uint8_t pad[1024 - 876];


Haven't tested it yet on Ubuntu 9.10 to see if it now works out of the box...
bartoque
Registered
 
Posts: 4
Joined: Sat Jan 09, 2010 4:52 am

Re: mktape error: Structure of MAM incorrect size: 1016

Postby nia » Mon Feb 08, 2010 12:57 am

I have tested the new code on 32-bit Debian 2.6.26-19lenny and 64-bit 2.6.29-gentoo-r5.
Both were OK and did not have any issues. :)
Hopfully, your Ubuntu 9.10 will do the same ..
~nia
User avatar
nia
Forum Founder
 
Posts: 242
Joined: Sat Dec 12, 2009 12:51 pm
Location: MI, USA

Re: mktape error: Structure of MAM incorrect size: 1016

Postby ghazih80 » Tue Feb 09, 2010 2:09 am

I did install and run mhvtl-2010-01-28.tgz/mhvtl-0.18-2 on ubuntu 9.10 x86_64 with no issue ..
It did not complain about any incorrect MAM size.
However, does this issue only affect 32-bit version , correct ?
ghazih80
Registered
 
Posts: 7
Joined: Sun Jan 31, 2010 12:04 pm

Re: mktape error: Structure of MAM incorrect size: 1016

Postby markh794 » Sat Feb 20, 2010 8:36 pm

The fix being added (0.18-2 & 0.16-12 (when released)) is :
struct MAM {
....<cut>....

/* Pad to keep MAM to 1024 bytes */
uint8_t pad[1024 - 876];
} __attribute__((packed));

This way, the size of the structure is the SAME on both 32 and 64bit platforms..
markh794
MHVTL - Developer
 
Posts: 84
Joined: Sat Feb 20, 2010 6:30 pm
Location: Sydney, Australia

Previous

Return to MHVTL Discussion Forums

Who is online

Users browsing this forum: d_y19, rami766 and 0 guests

cron