983 Commits

Author SHA1 Message Date
Axel Dörfler
9d37202871 Don't throw away any blocks at the end of the disk (we also support truncated
allocation groups).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-09 00:11:31 +00:00
Axel Dörfler
7a791c897c blocks_per_ag has to be doubled in each iteration (was messing up the
initialization of bigger volumes).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-09 00:01:11 +00:00
Rudolf Cornelissen
1f6a1c0197 fixed 'typo'.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-08 19:43:11 +00:00
Rudolf Cornelissen
5a0b9c6b0e v0.16 final
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-08 16:27:14 +00:00
Rudolf Cornelissen
8c30698233 fixed CRTC1 DPMS fault!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6522 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-07 16:03:09 +00:00
Rudolf Cornelissen
ca6bae3a7f CRTC granularity update for hardware bug on older cards (TNT2/GF2)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-06 21:25:09 +00:00
Waldemar Kornewald
5a483e4d35 Fixed a couple of possible dead-locks.
Fixed some minor bugs.
PPPoE: added experimental support for AccessConcentrator and ServiceName settings.
Changed libppp to import strlcat.c from libroot instead of duplicating code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-06 18:12:24 +00:00
shatty
0498000255 generalize bits per sample (we support 8, 16, 32 - which is actually 24 with padding). also fix "the bug" which was using stream->channels instead of channels for open_params.Pipe.wInterleave. it would have been nice for OpenAudio to give us some reasonable error ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-06 09:40:07 +00:00
shatty
2eabcdebe7 gentle patches to continue on with echo_stream_set_audioparms if we can not close the channel. also, use MakePipeIndex to give us some more reasonable pipe indices. (fix for record pipe number) VerifyAudioOpen after we open the stream, right now we fail there. :-(
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-06 08:42:19 +00:00
Rudolf Cornelissen
7a0db1a3bc fixed NV11 repeating screens trouble
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-05 16:26:47 +00:00
shatty
9524098cd8 more status checking, and more output
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-05 04:48:54 +00:00
Philippe Houdoin
7cfffb20a7 Well, I guess settings_tools.h should be under libkernelppp/headers...
At least, it fix interfaces/ppp/* build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 23:03:17 +00:00
Philippe Houdoin
a389d42d9e Reintroduce "route" network module, lost in the current/* new tree 8-\
Untested (yet), but build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 22:53:33 +00:00
Philippe Houdoin
a225934384 B_KEEP_LOADED flag not required, as core network module keep them loaded...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 21:27:09 +00:00
Philippe Houdoin
f80b17f6ff Ooops, passing NULL argument don't make net_stack_tester API... sorry, happy! ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 11:17:07 +00:00
Axel Dörfler
db88a56aa8 Now calls the new fs_shell only call kill_device_vnodes() in Volume::Initialize()
to be able to remove the cache correctly (without issuing any warnings).
The Volume::Initialize() method is now only defined in USER mode (of course, this
will change in OpenBeOS).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 02:14:51 +00:00
Rudolf Cornelissen
f6ee725658 corrected 'typos'
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-02 13:07:10 +00:00
Axel Dörfler
5b25332a79 This should fix the recently introduced locking problems:
- locking policy is now: 1) the volume lock, 2) the inode lock, 3) start
  the transaction (the journal lock) - you don't need all locks, but you
  have to follow this order when you need more than one of them.
- in many cases, this makes our inode read/write lock useless. I am really
  looking forward to the OpenBeOS VFS layer where we can remove many of
  these locks again.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-02 01:50:00 +00:00
Rudolf Cornelissen
5a84c3b178 updated overlay scaling remarks, final 0.08 version
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-01 21:35:09 +00:00
Rudolf Cornelissen
bdad933375 CRTC1/2 mode granularity updates again
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-01 12:58:48 +00:00
Rudolf Cornelissen
1263890952 added output follows monitor feature
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-31 16:21:14 +00:00
Axel Dörfler
36660c5e99 Switched from direct get_vnode() usage to the Vnode class.
Now acquires the volume lock always before get_vnode() is called as long
as UNSAFE_GET_VNODE is defined (which now is by default).
May cause some unwanted side-effects; it still has to be thorougly tested.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-30 00:47:56 +00:00
Axel Dörfler
b39a7a0edd Fixed the "inode is not becoming unbusy" problem.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 23:46:23 +00:00
Axel Dörfler
01338285a9 Some minor style changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 22:19:17 +00:00
Axel Dörfler
73e3e50c41 Fixed the bug that caused the "vnode already exists with different cookie"
crash: bfs_inode::InitCheck() didn't check INODE_DELETED, and Inode::Remove()
didn't clear the INODE_IN_USE flag (as the original BFS, IIRC).
Some more debug output and checks.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 22:14:07 +00:00
Axel Dörfler
fc2f5c4f98 Fixed working with volume without indices - in case of a corrupt indices node
the Inode will now be deleted, and it will only be tried to be instantiated
if the indices block_run is not zeroed out.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 10:45:54 +00:00
Axel Dörfler
403d1302de Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 10:44:18 +00:00
Rudolf Cornelissen
203b86df50 added dualhead switch mode
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 10:37:50 +00:00
shatty
162cf2d0a5 fix build problem
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-29 03:50:48 +00:00
Axel Dörfler
11805f2d85 BlockAllocator::InitializeAndClearBitmap() now also sets the used_blocks
field of the super block correctly.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-28 23:12:59 +00:00
Axel Dörfler
3bb10b9323 The standard indices are now created when a volume is initialized.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-28 23:07:52 +00:00
Axel Dörfler
b41bf79188 Standard log size is 2048 blocks, not 4096...
Added a ToDo comment so that I don't forget to add the standard indices :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 22:41:32 +00:00
Philippe Houdoin
ce5d0dee99 Ooops, Francois Revol's floppy driver is supposed to target R5 kernel, not yet OBOS one.
Commented out OBOS kernel build rules, and now build for R5.
NOTA: It's a PIO-read-only implementation currently.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 20:57:29 +00:00
Rudolf Cornelissen
b1332f1955 corrected typo
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 13:19:00 +00:00
Rudolf Cornelissen
cc6f554257 added overlay follows head functionality
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-27 12:17:51 +00:00
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
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
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
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
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
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
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
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
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