Chris Burns <[EMAIL PROTECTED]> writes: > The Bug occurs when comiling zftape support as a module and specifying a > deafult block size of 1 (i.e., disabling the compression). The > compiling fails with the message: > CONFIG_ZFT_DFLT_BLK_SZ must be 1 or a multiple of 1024 > > It seems to simply be a miscommunication between the settings in .config > and the zftape-rw.h header: > #if !defined(CONFIG_ZFT_DFLT_BLK_SZ) > # define CONFIG_ZFT_DFLT_BLK_SZ (10*1024) /* bytes, default of gnu tar > */ > #elif CONFIG_ZFT_DFLT_BLK_SZ == 0 > # undef CONFIG_ZFT_DFLT_BLK_SZ > # define CONFIG_ZFT_DFLT_BLK_SZ 1 > #elif (CONFIG_ZFT_DFLT_BLK_SZ % 1024) != 0 > # error CONFIG_ZFT_DFLT_BLK_SZ must be 1 or a multiple of 1024 > #endif The solution is that you should specify "0" in case you want to have a block size of 1 byte. This corresponds to the MTSETBLK ioctl which interpretes a parameter of "0" as variable block size mode. However, the "#error" statement is misleading. It should read must be 0 or a multiple of 1024 Thanks Claus -- Claus-Justus Heine [EMAIL PROTECTED] http://www.math1.rwth-aachen.de/~heine/ Ftape - the Linux Floppy Tape Project Home Page : http://www.math1.rwth-aachen.de/~heine/ftape/ CVS Repos. : http://iris3.math1.rwth-aachen.de:8000/cvsweb/ Bug Reports : http://iris3.math1.rwth-aachen.de:8080/gnats/ [EMAIL PROTECTED] Mailing-list: [EMAIL PROTECTED]
