----- Original Message ----- > Hi again, > > On Wed, Jan 23, 2013 at 3:28 PM, Dave Anderson <anderson@xxxxxxxxxx> > wrote: > > > > > > ----- Original Message ----- > >> Hi all, > >> > >> How do you feel about allowing minimal mode in extensions? See > >> attached patch. > >> > >> Regards, > >> Per > > > > Seems reasonable enough -- and I'm sure you've got good reasons for > > having minimal-mode extension modules. > > > > But since you're opening the door to all extension modules, I have > > a few additional suggestions. Modify the register_extension() and > > load_extension() functions such that: > > > > (1) if in minimal mode, and an extension module doesn't have any > > MINIMAL commands, reject the module outright, failing > > in a similar manner to the DUPLICATE_COMMAND_NAME error. > > > > (2) if in minimal mode, and an extension module has multiple > > commands > > where some are MINIMAL but others are not, maybe print a > > warning > > message for the commands that are not MINIMAL? > > > > And then document the MINIMAL flag in this part of the "extend" > > help page: > > > > crash> help extend > > ... > > command, and during command failures. The flags field > > currently has one > > available bit setting, REFRESH_TASK_TABLE, which should be set > > if it is > > preferable to reload the current set of running processes just > > prior to > > executing the command (on a live system). Terminate the array > > of > > command_table_entry structures with an entry with a NULL > > command name. > > ... > > > > Make sense? > > Does to me. New patch attached. > > /Per Looks good to me -- I just fixed this error message to use a colon: crash> extend echo.so extend: ./extensions/echo.so" does not contain any commands which support minimal mode extend: ./extensions/echo.so: shared object unloaded crash> and adjusted the updated help message to keep the modified paragraph less than 80 columns in length. Nice addition -- queued for crash-6.1.3. Thanks, Dave -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility