Commit Graph

240 Commits

Author SHA1 Message Date
Axel Dörfler
c113e0ecfd Added another ToDo item...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:21:06 +00:00
Axel Dörfler
adb9970c9e This file defines the private BFS ioctls to control the "chkbfs" mechanism
and other stuff.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:19:55 +00:00
Axel Dörfler
359c7618f0 Changed because of renaming IsValidBlockRun() to ValidateBlockRun().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:18:40 +00:00
Axel Dörfler
dbba7407de Renamed Volume::IsValidBlockRun() to Volume::ValidateBlockRun() because it
returns a status_t, not a boolean value.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:17:41 +00:00
Axel Dörfler
0c9a17ce08 Added a simple (and completely non-reliable) C implementation for atomic_set(),
and atomic_test_and_set() for userland testing purposes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:16:27 +00:00
Axel Dörfler
7781a5df6b Now uses block_run::MergeableWith() in Inode::GrowStream() - that also fixes
the bug where a block_run could get a zero length after merging it...
Updated a comment in Inode::Remove().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:14:30 +00:00
Axel Dörfler
2afbd5e712 Added new method block_run::MergeableWith() which checks if two different
block_runs can be merged together.
Added a constant for the maximum length of a block_run.
Added a flag constant to the inode that prevents freeing up its space
after it has been removed - this is only useful for the "chkbfs" stuff.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:12:56 +00:00
Axel Dörfler
8ea2f57ddd Added some more type identifying methods and constants (i.e. Inode::IsAttribute()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-18 01:10:31 +00:00
Matthew Wilber
78b736e8bc I'm not sure why that return was there in the first place
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-16 22:06:03 +00:00
Matthew Wilber
0f2c902adb I'm not sure what that return was doing there in the first place
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-16 22:05:26 +00:00
Axel Dörfler
6f6aedf0b3 Fixed the "famous" VM bug; read_pos() returns the number of bytes read, so
Cache::Read() != B_OK failed if the underlying class used that function.
We can now boot R5 with VM turned on without any problems (what a stupid bug).
As a side effect, you can now also mount volumes on your BFS disk, which was
also broken because of this bug.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:24:31 +00:00
Axel Dörfler
e94373bfa0 Added some comments, made bfs_create() a bit nicer (no functional change, though).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:22:16 +00:00
Axel Dörfler
601f33e246 It's no longer possible to remove or recreate a file that is opened with
uncached access.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1928 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:21:04 +00:00
Axel Dörfler
b334e2f00f Replaced the simple "return" with the RETURN_ERROR() macro for fatal errors
to make them visible in the log.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1927 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:19:49 +00:00
Axel Dörfler
ae01c8b752 Now includes <string.h> which is needed for the strerror() function used
in the macros.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1926 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-14 00:18:50 +00:00
Philippe Houdoin
c1e322be1d Fix a comment, and assume spawn_kernel_thread() always exists.
The stack debug platform, aka net_server, map to spawn_thread(), simply.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1924 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-13 23:51:36 +00:00
Philippe Houdoin
3a26c0afcb Make net modules mostly unaware of being (soon :-)) userland buildable too.
Some cleanup, in the way...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-12 21:06:11 +00:00
Philippe Houdoin
a0a6d75d61 Some net cleanup...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-12 21:03:25 +00:00
Axel Dörfler
fb39a31ca7 Fixed a dead-lock that could happen if an attribute was changed and you
had some running live queries.
SimpleLock now allows nesting; added some missing atomic operations to
make its implementation as easy as possible.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1901 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-10 06:05:46 +00:00
Axel Dörfler
b71ba910ba The non-benaphore of the Semaphore class just didn't work correctly...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 04:32:47 +00:00
Axel Dörfler
dab62fa391 Fixed a big stupid bug that can cause lots of trouble: all locks created
weren't moved to the kernel (as owner), so they would be deleted after
the team which almost randomly created them died.
Benaphores are now only used if USE_BENAPHORES is defined - I have renamed
the Benaphore class to Semaphore to take the changed behaviour into account.
Added a Status() method to the Locker class.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 02:02:31 +00:00
Axel Dörfler
e335b08a33 Fixed the wrong maintainance of the max_number_of_levels field in the
B+tree's header.
Some style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-07 12:30:45 +00:00
Axel Dörfler
a3d39a9e8a Equation::Match() unlocked the small data section too soon (the contents
could be changed before or during the comparison).
Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1861 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-06 22:17:21 +00:00
Philippe Houdoin
44f6e3ce60 *** empty log message ***
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-05 02:07:38 +00:00
Philippe Houdoin
097bec0493 Build the print add-ons in a "print" folder, not "Print", to follow BeOS
system folders lowercase naming.
Build print transport add-ons in their own sub-folder, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-05 01:33:48 +00:00
Philippe Houdoin
03a92a2178 Moved rtstat & rt_tables declarations in route.c instead of posix/net/route.h 8-\
Update the protocols and interfaces modules names prefix to reflect the real
disk hierarchy where they lives.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-01 02:58:20 +00:00
Philippe Houdoin
2cd1ec325f No more conflict on /dev/netstack between net_stack_driver and net_server_driver:
- net_server_driver now publish a /dev/net/server entry,
- net_stack_driver still publish a /dev/net/stack entry.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 21:06:07 +00:00
beveloper
2f344cad19 some more clean up and renaming
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 20:59:25 +00:00
beveloper
570e196319 bugfix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 17:22:23 +00:00
beveloper
b282b44773 code cleanup. renamed exported socket functions as socket_ and removed void *
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 16:40:51 +00:00
beveloper
24a8c5cfe1 fix for two bugs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 14:06:52 +00:00
Philippe Houdoin
d8d42f5a47 Some comments updated to the net_userstack_driver -> net_server_driver shift.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 08:47:22 +00:00
Philippe Houdoin
6b94eecd7c net_userstack_driver renamed into net_server_driver,
and net_server_driver is now build too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 08:24:00 +00:00
beveloper
42415555d3 after many changes, the network stack can now be build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 01:21:54 +00:00
Axel Dörfler
9844285a44 Changed the kmalloc()/kfree() calls to malloc()/free().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 23:08:35 +00:00
Bruno G. Albuquerque
bbdc29a05d bfs_walk() should check for read permissions for iterating through directories, not execute permission.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-28 13:31:54 +00:00
beveloper
6652c2eae9 removed some unused headers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-26 19:27:39 +00:00
beveloper
e58131e398 Excluded the ipr and lpr transport from the build.
They use the old net kit api, and need to be updated.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1624 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 18:12:46 +00:00
Axel Dörfler
23d098b60b Forgot to set the new "start" within the blocks range in
AllocationGroup::Allocate()/Free().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1610 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-23 02:59:39 +00:00
Axel Dörfler
820dca1912 Rearranged some code in the BlockAllocator; AllocationGroup now has Allocate()
and Free() methods which operate on the AllocationBlocks.
BlockAllocator::AllocateBlocks() couldn't correctly reserve space for allocation
groups with more than 2 blocks - AllocationGroup::Allocate() now can, which
is now used by AllocateBlocks() (but it's slightly less fast).
Began implementing functionality for a chkbfs-like command.
Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1603 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 17:54:38 +00:00
Axel Dörfler
c35898079f Updated tasks to do.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1602 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 17:49:24 +00:00
Axel Dörfler
e891a05e6e Add a new DEBUGGER() macro (doesn't do anything for the release build).
Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 17:48:29 +00:00
Axel Dörfler
05f02d9b9a Volume::Ummount() now use the NO_WRITES mode for remove_cached_device_blocks()
if the volume is read-only.
Some style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 17:46:12 +00:00
Axel Dörfler
7ab95d9da9 Made it easier to switch from R5 compilation to the test "obfs" compilation.
$ COMPILE_FOR_R5=1 jam
will compile the "bfs" version, otherwise the "obfs" version is created.
Note: the final executable will always be called obfs (for now).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1591 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 02:23:24 +00:00
Matthew Wilber
940ff9b93c changed C-style casting to the C++ standard style casting
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 01:23:05 +00:00
Matthew Wilber
7266c9b6ec forget paranthesis in two places, next time, I won't forget to try to compile before I check in code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 01:06:28 +00:00
Matthew Wilber
2861a868b9 changed old C-style casting to the C++ standard style casting
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 01:03:00 +00:00
Matthew Wilber
b8f9ee8199 Added a checkbox for turning on/off Save as RLE, saves TGA Translator settings to a file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 00:02:46 +00:00
Matthew Wilber
e5497a45ce added a checkbox for turning on/off save as RLE, saves TGA Translator settings to a file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 00:02:06 +00:00
Matthew Wilber
34bec321e8 added support for saving settings
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 00:00:12 +00:00