Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor sector size change via ModeSelect6 in scsicd #1406

Merged
merged 7 commits into from
Jan 9, 2024

Commits on Jan 7, 2024

  1. Make ModeSelect() non-const

    Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
    kkaempf committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    1fc2c09 View commit details
    Browse the repository at this point in the history
  2. Implement ModeSelect for scsicd

    and honor sector size setting.
    
    DEC's VMS can't handle 2k sector sizes and uses ModeSelect6 to set the
    sector size to 512 bytes.
    
    Fixes PiSCSI#1397
    
    Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
    kkaempf committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    e0cb5d4 View commit details
    Browse the repository at this point in the history
  3. Test sector size setting via ModeSelect in SCSICD

    Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
    kkaempf committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    cf0ccd8 View commit details
    Browse the repository at this point in the history
  4. Re-calculate total blocks when sector size changes

    Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
    kkaempf committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    e8437d1 View commit details
    Browse the repository at this point in the history
  5. Reset CD data tracks after sector size change

    The track calculation is based on sector size and must be reset after
    change of sector size.
    
    Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
    kkaempf committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    2d86000 View commit details
    Browse the repository at this point in the history
  6. resize cache after change of sector size

    The disk cache is based on sector size and must be resized when the
    sector size changes.
    
    Disk::ResizeCache needs a `raw` parameter, make this value accessible
    from the current cache.
    
    Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
    kkaempf committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    55769d5 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2024

  1. Make GetRawMode const

    Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
    kkaempf committed Jan 8, 2024
    Configuration menu
    Copy the full SHA
    2b1f7cb View commit details
    Browse the repository at this point in the history