History log of /haiku/src/add-ons/kernel/partitioning_systems/session/Disc.cpp
Revision Date Author Comments
# 9b72c3a0 11-Jul-2019 Simon South <simon@simonsouth.net>

kernel: Specify buffer size in certain ioctl calls.

In cases where scsi_periph checks the size of the buffer supplied to an
ioctl call (functionality added in commit ff4af513e1) this information
needs to be provided by the caller to avoid failure.

Fixes #15094.

Change-Id: I37f2776edbe977e9825ec1837fb763a3b2aa7220
Reviewed-on: https://review.haiku-os.org/c/1584
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 4ecb74f1 17-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Session: reinit ioctl data before sending it again.

The structure is used as input and output from ioctl, so we must clean
it before doing the ioctl for the second try.

May fix #11477.


# 3c3eb097 14-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Session: try harder to read the disc geometry.

On some discs and drives, the command may not work the first time.
Trying a second time succeeds more often.

Fixes #11467.


# 1a7bcf69 01-Jun-2014 Oliver Tappe <zooey@hirschkaefer.de>

Lots of B_PRI... insertions to fix errors with DEBUG=1.


# 3b8f7470 28-Apr-2011 Axel Dörfler <axeld@pinc-software.de>

Applied cleaned up patch originally by Ziusudra as part of ticket #3473:
* Changed the session module to create an extra session for existing audio
tracks.
* Let cdda also recognize "audio partitions" as published by the session module.
* If there is only a single session, the session module now gives file system
drivers the chance to play with the device directly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 568708be 08-Sep-2009 Jérôme Duval <korli@users.berlios.de>

the lba type returned is now off_t, trace with %lld


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33005 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3e513e1b 07-Sep-2009 Michael Lotz <mmlr@mlotz.ch>

Ignore negative start LBA values and assume 0 instead. At least VMWare Fusion
seems to incorrectly set pseconds to 0 for the first track, leading to an LBA of
-150 which messes up session recognition. Works around VMWare issue in #4439.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32990 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d74f1e1e 17-Aug-2009 François Revol <revol@free.fr>

Fix DEBUG build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 801535c8 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32310 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c881516f 28-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Accidently committed the wrong bash history line... these are the files that
were supposed to be deleted/changed with the previous commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31888 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6c05095c 14-Jul-2006 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

Last set of minor fixes for GCC 4 build.
More will follow later, need to clean the fixes up a little :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18154 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d9c69ef1 23-Oct-2005 Michael Lotz <mmlr@mlotz.ch>

Corrected the format constant (its 0010b) and set the msf bit to 1. MMC Specs say it shall not have an effect on the result, but it also states that the time bit shall be set to 1.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14483 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ad484987 15-Nov-2003 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

- Added Session class
- Updated Disc::GetSession() to now return a new Session object.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5370 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ba0b6e1 14-Nov-2003 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Initial checkin. Beginnings of port of disk_scanner session module to
disk device manager. Actual session scanning code appears to work
a-okay, but it isn't hooked up to the partition scanning entry function
yet, so sessions are not yet actually enumerated when the ddm test
program is run.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5366 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4ecb74f198bd55e5e423165ed70f6aa5cd0c06f8 17-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Session: reinit ioctl data before sending it again.

The structure is used as input and output from ioctl, so we must clean
it before doing the ioctl for the second try.

May fix #11477.


# 3c3eb0976021c2ed1f4fd6c1c4b853c8d17888db 14-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Session: try harder to read the disc geometry.

On some discs and drives, the command may not work the first time.
Trying a second time succeeds more often.

Fixes #11467.


# 1a7bcf6962e1c99906cce0fe602e08c3fcda46f6 01-Jun-2014 Oliver Tappe <zooey@hirschkaefer.de>

Lots of B_PRI... insertions to fix errors with DEBUG=1.


# 3b8f74706019f7e51d52087a1ec7896630c892fb 28-Apr-2011 Axel Dörfler <axeld@pinc-software.de>

Applied cleaned up patch originally by Ziusudra as part of ticket #3473:
* Changed the session module to create an extra session for existing audio
tracks.
* Let cdda also recognize "audio partitions" as published by the session module.
* If there is only a single session, the session module now gives file system
drivers the chance to play with the device directly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 568708be102422220e5b555c01bfbd48c488c9e0 08-Sep-2009 Jérôme Duval <korli@users.berlios.de>

the lba type returned is now off_t, trace with %lld


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33005 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3e513e1b8b6040ac9f91ec4b260bb28da63b4b56 07-Sep-2009 Michael Lotz <mmlr@mlotz.ch>

Ignore negative start LBA values and assume 0 instead. At least VMWare Fusion
seems to incorrectly set pseconds to 0 for the first track, leading to an LBA of
-150 which messes up session recognition. Works around VMWare issue in #4439.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32990 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d74f1e1ecb09095298f5d6bc75696f4a0bc3d40d 17-Aug-2009 François Revol <revol@free.fr>

Fix DEBUG build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32459 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 801535c8ed41addc35c6621cf7fd53bfca504a90 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32310 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c881516f656c037b5bc130e5a345f0e279ce51b0 28-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Accidently committed the wrong bash history line... these are the files that
were supposed to be deleted/changed with the previous commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31888 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6c05095ca633fe9862c0dcf75cb499d4e15d65b6 14-Jul-2006 Ithamar R. Adema <ithamar.adema@team-embedded.nl>

Last set of minor fixes for GCC 4 build.
More will follow later, need to clean the fixes up a little :)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18154 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d9c69ef133dc7d4f942aa4ab6188245d1ab0e0e3 23-Oct-2005 Michael Lotz <mmlr@mlotz.ch>

Corrected the format constant (its 0010b) and set the msf bit to 1. MMC Specs say it shall not have an effect on the result, but it also states that the time bit shall be set to 1.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14483 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ad4849879dc37aa9f3f0fd9decc8ea8332750413 15-Nov-2003 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

- Added Session class
- Updated Disc::GetSession() to now return a new Session object.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5370 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ba0b6e187f087c181fbecc61fa00509ac8e6050 14-Nov-2003 Tyler Dauwalder <tylerdauwalder@nowhere.fake>

Initial checkin. Beginnings of port of disk_scanner session module to
disk device manager. Actual session scanning code appears to work
a-okay, but it isn't hooked up to the partition scanning entry function
yet, so sessions are not yet actually enumerated when the ddm test
program is run.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5366 a95241bf-73f2-0310-859d-f6bbb57e9c96