Commit Graph

6457 Commits

Author SHA1 Message Date
Philippe Houdoin
58cdaa07fb Add new code reorg files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 08:05:13 +00:00
Axel Dörfler
a98a451545 Added a small test application that uses the same allocation group algorithm
as (our) BFS, so that you can play with it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 02:37:29 +00:00
Axel Dörfler
d61e7f330a Wrote a simple algorithm to create appropriate allocation group values
for newly initialized disks. Should work for all sizes :-)
Documented a bit what good values actually mean.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 02:26:22 +00:00
Axel Dörfler
afd7a6e6ce Added a new "stattest" command that permanently stat()s a file that is
being created and removed without a break.
That test is finally able to reproduce the bugs we are seeing in the
kernel but that never occured in userland - thanks *very* much to
mmu_man who found the shortest way to trigger it.
Just run it for a few minutes and it should happen (press "return" to stop it).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6338 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 01:17:22 +00:00
DarkWyrm
a3365dd184 Update to match overhaul of DisplayDriver API
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 00:41:45 +00:00
DarkWyrm
f9de45c608 Major overhaul of the DisplayDriver API
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 00:39:41 +00:00
DarkWyrm
b4fe4d74fe Major overhaul of DisplayDriver API
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 00:39:01 +00:00
DarkWyrm
06d841d5ea Major overhaul of DisplayDriver API - fewer virtual functions and less duplicated code
Removed Clipper from build
Removed ScreenDriver from build for the moment


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 00:38:14 +00:00
Rudolf Cornelissen
e0dd08e80c fixed move_display distortions (both heads)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 20:20:18 +00:00
Rudolf Cornelissen
693152bfa2 Added dualhead support for 8- and 16bit colordepths
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 16:49:49 +00:00
Rudolf Cornelissen
bc5690ab74 added dualhead support in 8- and 16bit colordepth
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 16:46:54 +00:00
Rudolf Cornelissen
4b47486ee5 updated mode granularity checking / max virtual size limiting for dualhead cards
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 15:06:35 +00:00
Axel Dörfler
c10586fe0d Fixed a typo.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 12:35:00 +00:00
Axel Dörfler
965c8c8b4d Fixed the Volume::Mount() call; BlockAllocator::Initialize() was never
called since last change (could mount volumes, but cannot write to them
anymore without errors).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 12:29:26 +00:00
shatty
97a08414e0 accurate frame count and duration computation. SoundPlay seems to behave /slightly/ better now. At least it stopped machine-gun playing the files. unfortunately the caching packet implementation seems to come with a drawback. the granulepos is only valid on the initial traversal through the file. not sure why but this means that we only get one shot at computing the frame count and duration, so I cached them for the time being. it would be nice to be clever about recomputing the frame count and duration in the face of changing file sizes (downloads) and not traverse the whole file anyway, but this will require some more work. also we may (will?) need those granulepos for seek.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 10:51:54 +00:00
Axel Dörfler
c4e3ef09c4 Removed the makefile, since it's not used at all.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 10:38:38 +00:00
Axel Dörfler
4472757fb0 Renamed the generic "floppy" target to "boot_floppy" so that it doesn't
clash with the floppy driver anymore.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 10:33:13 +00:00
Axel Dörfler
6b6b3d294b Fixed all warnings.
Renamed DPRINT() to the more common (in our codebase) TRACE().
print_sr0() is only compiled in and called if DEBUG is defined.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 10:28:16 +00:00
Axel Dörfler
fb86eb2c00 Fixed all warnings, added license.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 09:53:51 +00:00
Axel Dörfler
322defd113 Accidently broke the build by allowing kernel_cpp.cpp to be built without
having access to private/kernel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 09:33:31 +00:00
Axel Dörfler
e0014cf657 Reduced the block cache size a bit.
Set the volume ID to 1 now - that's a hack to get it working until
we have better support from fs_shell's kernel.c.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 03:39:03 +00:00
Axel Dörfler
9e72b7739d Inode::Create() now prints out a reason if new_vnode() failed.
If the parent is NULL, Inode::Create() will now set node::parent to
the node itself, like BFS is doing it (for root and indices nodes only).
Added a temporary hack in Volume::Initialize() to get the inodes freed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 03:38:08 +00:00
Axel Dörfler
ddf3d84685 Removed debug output, set mode of newly created root node to 0755 instead of 0777.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 03:20:07 +00:00
Axel Dörfler
a447f8b11c Added an initial mkbfs test app (it's intended to be used under R5).
Hardcoded device file to "/boot/home/test-device" - more to come :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:59:00 +00:00
Axel Dörfler
7410cb93f2 Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:54:49 +00:00
Axel Dörfler
437490577d Added the USED_IN_FS_SHELL define.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:51:12 +00:00
Axel Dörfler
eb02489701 Bound the tracker feature to a USED_IN_FS_SHELL define (to allow building
in other environments, too).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:47:24 +00:00
Axel Dörfler
aac1dff951 Updated the comment in bfs_initialize() - which we don't need for R5 (as it's
never called).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:45:54 +00:00
Axel Dörfler
3154133754 Moved the functionality of Volume::IsSuperBlockValid() into the new
disk_super_block::IsValid() method.
There is now a disk_super_block::Initialize() method that sets up
a super block for creating a new file system on it - it's currently
hard coded to produce correct results for 10 MB images, though;
the allocation group stuff has to be done a bit more flexible :)

Added a DeviceOpener class that simplifies Volume::Mount() a bit and
fixes some problems of it (forgot to call close() once or twice).
Implemented the new Volume::Initialize() method that completely
covers the mkbfs functionality.

Fixed the broken Volume::ToBlockRun() method - AFAICT it has only
be used by Volume::CreateIndicesRoot() and in dump_bplustree_node
so far (should not have been critical, as the former was probably
never called yet [only if you had tried to create an index on a
BFS volume that didn't have indices yet]).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:44:27 +00:00
Axel Dörfler
d7db210882 Fixed a bug that could happen when calling Inode::Create() with unusual
arguments (such for creating a root directory, for example).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:08:31 +00:00
Axel Dörfler
81566b9389 Implemented initalizing the bitmap of a fresh volume in the new call
BlockAllocator::InitializeAndClearBitmap().
Added BlockAllocator::BitmapSize() which returns the size of the block
bitmap in bytes - used it where appropriate.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:06:47 +00:00
Axel Dörfler
daf0126bb2 alarm_event() has sent the signal to the currently running thread instead
of the one that issues the alarm - it now does an ugly cast to get the
real thread structure. It would be nice if we had an additional user
parameter to a timer event.
Thanks to Travis for reporting this one!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 02:01:46 +00:00
shatty
6f9a2da340 DarkWyrm feature request: keyboard short for Save As... command-shift-s
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 00:24:10 +00:00
shatty
992d3cc594 std::vector<void*> crashes gcc 991026, so I switched to a vector of stream serialno, and use the stream serialno through the serial->OggStream* map to get back the OggStream * cookie for AllocateCookie. (whew!) casting the pointer to int probably would work too but this solution seems less hackish.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-26 00:22:56 +00:00
beveloper
9806a571a3 removed ogg format and meta format description
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 22:29:53 +00:00
beveloper
546c34ca7b removed OGG family and meta format description
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 22:28:19 +00:00
beveloper
6e2ff16018 small test, but this resync thing doesn't work well
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 22:07:07 +00:00
beveloper
df016bba35 media kit plugins update
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 22:01:23 +00:00
shatty
05116a366a do not fail if GetFormatFor fails, instead spit out a TRACE message and then use a default format, with the user_data field populated so that MediaPlayer can give a somewhat helpful error message
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 21:33:28 +00:00
François Revol
4d8c3e52a9 Fixed prototype names
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 20:31:53 +00:00
Axel Dörfler
016f7b6f32 Fixed compilation when you can't add private/kernel to your include headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 18:31:04 +00:00
Axel Dörfler
0f18208594 BMediaFormats::InitCheck() now checks if the global lock could be initialized
to give its existance a bit more sense.
update_media_formats() no longer ASSERTS if the lock is held, but fails
if it's not locked.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:56:10 +00:00
Axel Dörfler
ddb013472a Switched to kernel_cpp.cpp/h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:45:21 +00:00
Axel Dörfler
14795a07ba Fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:42:16 +00:00
Axel Dörfler
8d0b31a063 Fixed warnings.
Minor style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:25:50 +00:00
Axel Dörfler
b103e03a71 Switched to kernel_cpp.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:13:57 +00:00
Axel Dörfler
d3d255f3a9 Got btree test to build again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:11:19 +00:00
Axel Dörfler
6fbc2b70db Updated for change in the debug mode.
Switched to kernel_cpp.cpp/h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:04:20 +00:00
Axel Dörfler
67a14a5ee7 Unbroke the debug build (also in user mode).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 15:03:38 +00:00
Axel Dörfler
ba6b73149c Not needed anymore, now uses kernel.cpp/h (same thing, just in a standard location).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-25 14:50:09 +00:00