Changes between Version 1 and Version 2 of DeveloperHowToMigrate


Ignore:
Timestamp:
08/19/2009 07:54:08 PM (10 years ago)
Author:
Christian Franke
Comment:

Fix formatting, add missing '::', move CVS diffs to SVN changesets

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperHowToMigrate

    v1 v2  
    1010#!sh
    1111$ cat dev_legacy.cpp >> os_youros.cpp
    12 [[code]]
    13 - Re-configure, this should now detect new interface:
    14 [[code format="bash"]]
     12}}}
     13 * Re-configure, this should now detect new interface:
     14{{{
     15#!sh
    1516$ ./configure
    1617...
     
    5556{
    5657  ...
    57   m_fd = open(get_dev_name(), ...);
     58  m_fd = ::open(get_dev_name(), ...);
    5859  if (m_fd < 0) {
    5960    set_err(errno);
     
    104105 * Remove special handling for SMART STATUS, return result registers in 'out.out_regs' if requested by 'in.out_needed.is_set()'.
    105106 * Adjust returns:
    106 {{{
    107 Replace 'return 0;' by 'return true;'.
    108 Replace 'errno = ERR; return -1;' by 'return set_err(ERR, "optional message", ...)'.
    109 }}}
     107   * Replace 'return 0;' by 'return true;'.
     108   * Replace 'errno = ERR; return -1;' by 'return set_err(ERR, "optional message", ...)'.
    110109 * Optional add 48bit ATA pass through support:
    111 {{{
    112 If 'in.in_regs.is_48bit_cmd()' is set,
    113 pass low (in.in_regs.lba_mid) and
    114 high (in.in_regs.prev.lba_mid) byte of each register to ioctl.
    115 }}}
     110   * If 'in.in_regs.is_48bit_cmd()' is set, pass low (in.in_regs.lba_mid) and high (in.in_regs.prev.lba_mid) byte of each register to ioctl.
    116111
    117112=== Later ===
     
    121116
    122117=== Example for Steps 1+2: ===
    123 http://smartmontools.cvs.sourceforge.net/viewvc/smartmontools/sm5/os_linux.cpp?r1=1.116&r2=1.117
     118See changeset r2623
    124119
    125120=== Example for Step 3 (3ware only): ===
    126 http://smartmontools.cvs.sourceforge.net/viewvc/smartmontools/sm5/os_linux.cpp?r1=1.117&r2=1.118
     121See changeset r2624