2002-09-22 Andreas Buesching * configure.in (SPEC_PATH): needed for the spec file to find the kernel module 2002-09-22 Markus Germeier * mpiosh/callback.c (mpiosh_cmd_mdel): fixed logical error in abort handling which corrupted FAT and directory (mpiosh_cmd_mget): call the correct callback function (mpiosh_callback_put): introduced mpiosh_cancel_ack to fix annoying displays in case of an abort (mpiosh_cmd_mput): don't break mput if an FILE_EXITS is encountered 2002-09-21 Andreas Buesching * mpio.spec.in (CFLAGS): add 'depmod -a' call to post install instructions * kernel/Makefile.am: add target clean and fixed the install target to not strip the kernel module 2002-09-21 Yuji Touya * README: Add a few lines about Hot plug for 2.4.x 2002-09-20 Markus Germeier * libmpio/mpio.c (mpio_init): added code to identify DMG+ (assumed, but should be correct) * mpiosh/callback.c (mpiosh_cmd_format, mpiosh_cmd_mem): added warning messages for the upcoming release. (mpiosh_cmd_get, mpiosh_cmd_put): added missing printf 2002-09-20 Andreas Buesching * mpiosh/mpiosh.c (mpiosh_command_regex_fix): bug fix for .* do not quote the '.' if next character is a '*' * libmpio/mpio.c (mpio_strerror): fixed stupid bug no 23.423.543.453.453 (time to go to bed) 2002-09-19 Andreas Buesching * libmpio/mpio.c (mpio_strerror): fixed a strange bug with the argument name. Never call an argument errno?!? 2002-09-19 Markus Germeier * mpiosh/callback.c (mpiosh_cmd_dump, mpiosh_cmd_mget) (mpiosh_cmd_mdel, mpiosh_cmd_mput): fixed handling of an abort * libmpio/mpio.c (MPIO_ERR_RETURN): fixed buggy define 2002-09-19 Andreas Buesching * mpiosh/mpiosh.c (mpiosh_command_regex_fix): hopefully fixed a bug (Sorry Markus) * mpiosh/callback.c (mpiosh_cmd_mput): using new error handling functions * libmpio/mpio.c (mpio_errno, mpio_strerror, mpio_perror): add functions for error handling (mpio_file_get, mpio_file_put, mpio_file_del): using error handling functions 2002-09-19 Markus Germeier * libmpio/mpio.c (mpio_init_internal): added code to check if the internal memory is available (don't ask! :-) (mpio_sync): check if selected memory is available * mpiosh/callback.c (mpiosh_cmd_mem): fixed external mem check 2002-09-18 Markus Germeier * mpiosh/callback.c (mpiosh_cmd_mem): external memory is only selectable if it is available * libmpio/mpio.c (mpio_init): added progress callback for init * mpiosh/callback.c (mpiosh_callback_init): added function * libmpio/io.c (cluster2block, cluster2blockaddress): removed wrong block mapping (current mapping should work with complete error free SM cards _only_) 2002-09-18 Andreas Buesching * libmpio/mpio.c (mpio_file_get, mpio_file_put, mpio_file_del): using new error codes * libmpio/defs.h (MPIO_ERR_*): added definitions for possible errors codes * libmpio/mpio.c (mpio_model_name): moved model array from def.h; removed some compiler warnings (unused variables, missing return codes) * mpiosh/mpiosh.c (mpiosh_command_regex_fix): extented conditions to not replace sequences like ".*" by "\\..*" 2002-09-16 Andreas Buesching * kernel/Makefile.am (install-strip): defined to avoid stripping of the kernel module 2002-09-16 Yuji Touya * kernel/mpio.c: changed include file to resolve symbols * kernel/mpio.c (read_mpio): changed maxretry value * libmpio/io.c (model2externalmem): fixed function * libmpio/defs.h: added command, filetype and comments * README: modified "getting started" 2002-09-15 Andreas Buesching * mpiosh/callback.c (mpiosh_cmd_ldir): checking more return values to avoid segmentation faults. * mpiosh/mpiosh.c: removed all references to the not implemented switch command (just for the next release) * configure.in (MODULE_PATH): checking for the right module directory and use it to install the mpio module * kernel/Makefile.am (install): the kernel module is now installed into the determinated module directory of the current kernel version. * mpio.spec.in: created rpm spec file for creating binary and source rpm packages 2002-09-15 Markus Germeier * mpiosh/callback.c (mpiosh_cmd_debug_mem): added function call "debug_memory" in mpiosh * libmpio/io.c (model2externalmem): added function (mpio_io_set_cmdpacket): use model2externalmem * libmpio/mpio.c (mpio_init): added code to identify different models (mpio_memory_debug): added function for debugging purposes 2002-09-15 Andreas Buesching * mpiosh/mpiosh.c: add a debug message, displaying the executed command in script mode (mpiosh_command_regex_fix): better mapping for shell regular expressions (hopefully) 2002-09-15 Markus Germeier * libmpio/directory.c: add debug informations, (mpio_dentry_get): fixed a off-by-one error * libmpio/mpio.h: add mpio_mem_t to dentry functions to enable further debugging 2002-09-14 Andreas Buesching * mpiosh/mpiosh.c: does not hang anymore after reading commands from a pipe * mpiosh/callback.c (mpiosh_callback_mget, mpiosh_callback_mput) (mpiosh_callback_mdel): calling new function mpiosh_command_regex_fix * mpiosh/mpiosh.c: fixed output of none interactive mode (mpiosh_signal_handler, mpiosh_readline_cancel) (mpiosh_noredisplay): functions added to get a expected handling of C-c (SIGINT) (mpiosh_command_regex_fix): add function. tries to map regular expressions to shell expressions. mapping '*' -> ".*" and '.' -> "\." 2002-09-13 Markus Germeier * libmpio/mpio.c (mpio_file_put): fixed abort handling 2002-09-13 Andreas Buesching * mpiosh/callback.c (mpiosh_callback_mget, mpiosh_callback_mput) (mpiosh_callback_mdel): handling of user interrupt * mpiosh/mpiosh.c: handling for stdin being a tty * mpiosh/callback.c (mpiosh_callback_get, mpiosh_callback_put) (mpiosh_callback_del): using mpiosh_cancel to abort operation * mpiosh/mpiosh.c: changed handling of SIGINT. The global variable mpiosh_cancel indicates the interrupt. * mpiosh/callback.c (mpiosh_cmd_help): add support for arguments. just prints help about specified commands. * mpiosh/mpiosh.c: add new command lpwd 2002-09-13 Markus Germeier * mpiosh/callback.c (mpiosh_cmd_put, mpiosh_cmd_del) (mpiosh_cmd_mdel, mpiosh_cmd_mput): use mpio_sync * libmpio/mpio.c (mpio_file_get, mpio_file_put) (mpio_memory_format, mpio_file_del): add code to handle abort "signal" from user interface (mpio_sync): added function 2002-09-12 Andreas Buesching * mpiosh/mpiosh.c (mpiosh_command_split): function added to support command sequences separated by ';' changed mpiosh_cmd_t structure, containing help string and argument information * mpiosh/callback.h, mpiosh/callback.c (): new files containing callback functions of shell commands (MPIOSH_CHECK_CONNECTION_OPEN, MPIOSH_CHECK_CONNECTION_CLOSED) (MPIOSH_CHECK_ARG): macros for checking status of connection to player 2002-09-11 Markus Germeier * libmpio/mpio.c (mpio_file_put,mpio_file_get): set timestamps on files correct * libmpio/directory.c (mpio_dentry_put): write correct 8.3 filenames into directory (mpio_dentry_put): fixed handling of time stamps with a "little" help from the current mtools distribution (date_dos2unix): added function, copied from the linux kernel (mpio_dentry_get_time): added function, uses (date_dos2unix) 2002-09-11 Markus Germeier * mpio_tool/mpiosh.c (mpiosh_cmd_mdel): added command mdel 2002-09-11 Markus Germeier * libmpio/mpio.c (mpio_file_put): finished support for writing to internal memory + changes to fat.c and io.c 2002-09-11 Markus Germeier * libmpio/io.c (cluster2blockaddress): added function (mpio_io_block_write, mpio_io_sector_write): fixed block address in spare area (mpio_io_block_read): check block address and give debug output if address differs 2002-09-11 Markus Germeier * libmpio/mpio.c (mpio_file_put): (+ various files) updated writing support to support mpio_fatentry_t 2002-09-10 Markus Germeier * libmpio/io.c (mpio_io_block_write): write FAT entry for internal mem * libmpio/fat.c (mpio_fat_internal_find_fileindex): added function 2002-09-10 Markus Germeier * libmpio/mpio.c (mpio_memory_format): formatting works for internal and external memory now BEWARE: No config files are written, you might ruin your player!!! * libmpio/mpio.c (mpio_file_del): deleting works for internal and external memory now (BEWARE !!!) * support for deleting/formatting added to various parts of fat.c and io.c 2002-09-10 Markus Germeier * libmpio/fat.c (mpio_fatentry_set_free) (mpio_fatentry_set_defect): added functions * libmpio/io.c (mpio_io_block_delete): return negative status value in case of error * libmpio/mpio.c (mpio_memory_format): mark block/cluster defect in FAT if an error occurs during format * libmpio/mpio.c (mpio_file_del): changed function to support new mpio_fatentry_t 2002-09-09 Markus Germeier * libmpio/io.c (fatentry2hw): added function (mpio_io_block_read, mpio_io_block_delete): use fatentry2hw 2002-09-09 Markus Germeier * libmpio/mpio.c (mpio_memory_format): updated code to format external SmartMedia cards * libmpio/fat.c (mpio_fatentry_plus_plus, mpio_bootblocks_read): fixed max_cluster issues 2002-09-09 Markus Germeier * libmpio/io.c (cluster2block): fixed cluster to block mapping for 32MB SmartMedia cards * libmpio/io.c (mpio_io_block_read, mpio_io_sector_read): added debug output in case of ECC error * libmpio/mpio.c (mpio_memory_free): fixed segmentation violation if no SM card is inserted * libmpio/mpio.c (mpio_get_info): *really* fixed the problem if no SM card is inserted 2002-09-09 Markus Germeier * mpio_tool/mpiosh.c: (mpiosh_cmd_mput): (mpiosh_cmd_mget): make info texts consistent with get and put * libmpio/mpio.c (mpio_init_internal): fixed max_clusters for internal memory with more then one chip * libmpio/fat.c (mpio_fatentry_hw2entry): added function * libmpio/fat.c (mpio_fatentry_entry2hw): added function * libmpio/fat.c: fixed support for MPIOs with more than one internal chip (hopefully, someone please test this) 2002-09-08 Markus Germeier * mpio_tool/mpiosh.c: (mpiosh_cmd_mput): fixed regex handling (mpiosh_cmd_mget): fixed regex handling * regex for mput/mget does now work but uses "hard" regular expressions instead of shell-like regex, e.g.: "^0.*\.mp3$" ("hard" regular expression) "0*.mp3" (shell-like) 2002-09-04 Andreas Buesching * mpio_tool/mpiosh.c (mpiosh_cmd_mput): added command mput. The arguments can be extended regular expressions. UNTESTED! (mpiosh_cmd_ldir): removed compiler warnings (mpiosh_cmd_mget): added command mget. The arguments can be extended regular expressions. UNTESTED! (mpiosh_cmd_help): updated help text 2002-09-03 Markus Germeier * first part of "design" fixes * libmpio: - introduced mpio_fatentry_t - reading support changed to mpio_fatentry_t - writing and deleting deactivated (this simply can't work right now) 2002-09-03 Yuji Touya * add mkmpiodev script to create device file * README: add explanation to get started 2002-09-03 Markus Germeier * libmpio/*: various "little" code cleanups 2002-09-01 Andreas Buesching * mpio_tool/mpiosh.c: add commands lcd and ldir (mpiosh_cmd_dump): fixed a stupid bug (mpiosh_cmd_ldir): implemented the command ldir (mpiosh_cmd_lcd): implemented the command lcd 2002-08-22 Andreas Buesching * README: fixed soome types and add a warning * AUTHORS: add salmoon to the list 2002-08-05 Andreas Buesching * autogen.sh: add script to build configure script