Commit Graph

6272 Commits

Author SHA1 Message Date
Axel Dörfler
a49b150fff Removed the fOwningThread functionality from the Journal class; it now
just uses a RecursiveLock instead.
Changed Journal::CurrentTransaction() so that it returns the current
transaction only if it's valid for the thread asking for it.
That doesn't fix the bug, but changed its timing a bit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 11:19:05 +00:00
Axel Dörfler
0057030901 Added some more debug output and checks.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 11:15:43 +00:00
Axel Dörfler
d401c62383 Fixed typo.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 11:14:37 +00:00
Axel Dörfler
8364cf0a90 Added a LockWithTimeout() method to the RecursiveLock class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 11:11:18 +00:00
shatty
e1431e96f3 remove references to B_OGG_FORMAT_FAMILY
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 10:59:33 +00:00
Philippe Houdoin
9f9f78217c Fix warning, and let's dump_ipv4_header() now...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 10:22:19 +00:00
Axel Dörfler
3eacb520e4 The InodeAllocator will now remove the INODE_NOT_READY flag to unblock
any pending bfs_read_vnode() calls when it is destructed and the inode
goes away.
Fixed some endian related issues.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 09:54:47 +00:00
Axel Dörfler
2726d4732e This should fix the syslog_daemon build under R5 (compiles strlcpy() in).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 09:41:41 +00:00
shatty
d9e843d8e1 remove breaking csplit from build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 09:32:35 +00:00
shatty
e24c8d423d take advantage of new types in OS.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 09:32:16 +00:00
shatty
b83b512f83 relocated kernel_cpp.h requires different UsePrivateHeaders
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 08:55:46 +00:00
shatty
06276e0a97 tiny debug compile fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 08:48:15 +00:00
François Revol
40492c28e8 More warning fixes; fixed Axel's mess (thanks anyway :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 08:36:31 +00:00
Philippe Houdoin
8042d2a0f8 More space in paths awareness.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 08:17:04 +00:00
Philippe Houdoin
eb0b2846e8 NOw that's moved to Jamfiles build, no need for build instructions.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 08:09:08 +00:00
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