Commit Graph

4650 Commits

Author SHA1 Message Date
Axel Dörfler
c5ccd40caa It's now silent or more verbose depending on how TRACE_BFS is defined.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 01:06:43 +00:00
beveloper
ed724a32d1 added new pci bus manager module, removed config manager
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4719 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 01:05:39 +00:00
Axel Dörfler
070bba8608 The partition-is-big-enough-for-child test did not work correctly; the
partition offset doesn't belong there (caused it to hide nested partitions)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 01:02:26 +00:00
beveloper
14b537e142 added new private header file for new pci module.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 01:00:14 +00:00
DarkWyrm
2399b2c59a tweaks to get server to build under R5 without using jam
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 00:03:47 +00:00
Axel Dörfler
cb94280c6b The file system is now almost endian-aware.
Used lazy unreadable conversion: ==, !=, == 0, != 0 are endian-safe
and don't need byte swapping.
If the platform endian differs from the one selected at compile time,
it will mount all volumes read-only for now.
Uncomment BFS_BIG_ENDIAN_ONLY in the Jamfile to build the big endian
version under x86.
No matter on what platform, the compilation defaults to build BFS as
little endian file system (see bfs_endian.h for details).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 21:49:22 +00:00
Axel Dörfler
fd5b021f86 Fixed endian issues - it now does work with big endian BFS disks as well.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 14:36:40 +00:00
Axel Dörfler
d81d3bfa4c Added B_SSIZE_T_TYPE, B_SIZE_T_TYPE, B_OFF_T_TYPE to compareKeys().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 13:20:43 +00:00
Axel Dörfler
f96b2bc0de Only send notifications if writing was successful.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 13:19:21 +00:00
Philippe Houdoin
cbfc7b95e0 Ooops, memory leaked detected!!!
Fixed now.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 07:52:52 +00:00
shatty
1cfc49614f fixed BMessage::Flatten(x) so that it does not crash
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 03:45:51 +00:00
shatty
b9fbf3f78c Appearance uses private app server headers which require the freetype headers
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 03:12:11 +00:00
Axel Dörfler
434eb84378 Implemented the missing Directory::Lookup() method, since it's now needed
during path parsing.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 02:34:55 +00:00
Axel Dörfler
09fb7d4bbc Implemented hash functions for DirectoryBlock.
Added HashIterator::InitCheck() method (as the allocation of the buffer
might fail).
Added a HashIterator::Goto() method to jump to the specified index in
the hash (handy for hash lookup).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 02:33:48 +00:00
Axel Dörfler
479e4ab5cf The Volume now stores the type of the file system (as Type()).
Improved constructor.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 02:31:06 +00:00
Axel Dörfler
101bb5d182 Implemented path parsing, open(), and the new open_from().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 02:29:33 +00:00
Axel Dörfler
ad1b3319c5 Added a new open_from() call.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 02:28:50 +00:00
Axel Dörfler
69a8a40770 Forgot to commit this: defines the AmigaFFS module info structure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 02:28:21 +00:00
shatty
5bb34df0a8 improved font sensitivity
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 01:13:15 +00:00
Axel Dörfler
36c5179a74 Implemented file reading (only slightly tested, but it should be enough
for our purposes [just copied some files in 1024 byte blocks to the Desktop]).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4701 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 00:58:04 +00:00
Philippe Houdoin
d07d632d7f Fix a crash/bug rasing when read_next_module_name() current module is unload before next call.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4700 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 00:56:37 +00:00
Axel Dörfler
0f8efd8af0 Removed the ExtensionBlock class - it's now completely managed by the
FileBlock class itself.
Added some data related getter methods.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4699 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 00:56:01 +00:00
Axel Dörfler
ee9b3cfd75 Now links against the boottest file system modules, it doesn't build them
directly anymore (due to name clashes).
Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4698 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 22:31:06 +00:00
Axel Dörfler
7be68ba5e7 Does now return the correct size if the handle belongs to a real file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 22:29:05 +00:00
Axel Dörfler
2430b4ed28 Added Jamfiles to build the userland boot file system modules to a
different directory than the main boot loader test application.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 22:20:12 +00:00
Axel Dörfler
50d9710f0d Implemented an Amiga FFS reader for the boot loader. Can only traverse
directories right now, reading from files is not yet implemented.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 22:10:10 +00:00
Axel Dörfler
86f2640947 get_descriptor() can now also safely be called with a descriptor less
than zero.
Supports now up to 64 file descriptors (just in case).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4694 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 21:58:03 +00:00
Axel Dörfler
3ad474d024 The main partition can now contain file systems as well (it's no longer
created on the stack, and added to the gPartitions list in that case).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4693 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 21:55:45 +00:00
Ingo Weinhold
b8baf385d1 Just another fix to LinkSharedOSLibs: Jam's :B selector does, per definition, not include the suffix. That's why the checks for *.a and *.so wouldn't work.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4692 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:58:57 +00:00
Adi Oanca
87bcd8f415 * Added a handler for AS_LAYER_SET_FONT_STATE message
* Modified a bit AS_LAYER_CREATE handler 'cause I forgot about AS_LAYER_SET_FONT_STATE and hidden state.
* Added a handler for AS_LAYER_GET_STATE message
* Added a handler for AS_LAYER_DELETE message
* Modified FindLayer() - now it works OK
* added debugging code for AS_LAYER_CREATE handler.
*** Tree structure is in place and working.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4691 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:14:45 +00:00
Adi Oanca
ffb9ea55f5 * added initialization in contructor to (0.0, 0.0) for _boundsLeftTop member.
* modified Bounds() to use that member.
* some changes into RemoveChild()
* added a debugging method: void PrintTree()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4690 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:11:52 +00:00
Adi Oanca
4a60209dc7 * added ServerFont::operator=(const ServerFont& font).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:09:13 +00:00
Adi Oanca
b6577e4da8 * added a new member, BPoint _boundsLeftTop. Beside other uses, (DW don't forget!)it will be needed in redraw code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4688 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:08:44 +00:00
Adi Oanca
260ec753f4 * changed SetFont to acomodate(eng?) with LayerData's 'font' member witch is now allocated on stack.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:08:07 +00:00
Adi Oanca
957320d114 * Minor changes due to the fact that LayerData::font member is allocated on stack now...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:07:45 +00:00
Adi Oanca
b81089db11 * made fLastViewToken member equal with top_view's token. This avoids an unnecessary message to be sent to app_server.
* added some debugging code?
* other changes...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4685 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:05:07 +00:00
Adi Oanca
2f8db4e46a * Modified a few lines from BSession::WriteInt32( uint32 ) into WriteUInt32( uint32 )
* in updateCachedState(), now all font attributes are received at once; I realized app_server doesn't need the flag based system. :-)
* added a new method: PrintToStream() - used for debugging.
* now the view state is allocated and initialized in BView::InitData(...)
* modified a few things in addToList(...) 'cause I don't know what was in my head when I wrote it?!
* added _ReservedView2-18() methods because of linker errors.
* a new method used for debugging: PrintTree()
* added debugging messages for a few methods
* TESTED view hierarchy methods like AddChild() and RemoveChild() RemoveSelf() - They WORK! :-)))
* minor but significant :-) ( = instead of == ) change in findView(...)
*** Tree structure is in place now, mirrored on app_server ... and working :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 19:03:59 +00:00
Adi Oanca
bd26e2d2d1 * added '=' operator
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 18:58:49 +00:00
Adi Oanca
09c067b8e4 * modified 'font' member from '*font' to 'font'. '*font' was getting the pointer to system's plain font, and worse, it modified it. Now, it's all OK.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4682 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 18:58:06 +00:00
Adi Oanca
36845b1281 * added PrintToStream() method for debugging BView.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4681 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-15 18:56:48 +00:00
Axel Dörfler
f096bc378d Now sets the block size using the disk_environment information, and doesn't
just copy the partition block size anymore.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:51:15 +00:00
Axel Dörfler
32270ffe96 Added some missing consts.
Added BlockSize() method for the disk_environment.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:50:21 +00:00
Axel Dörfler
25a5c7d03d Moved the class definition back to <boot/partitions.h>, since it's now public
again.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:41:19 +00:00
Axel Dörfler
5d2ca15280 Class Partition is now part of <boot/partitions.h>.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:40:35 +00:00
Axel Dörfler
1cd06a2273 Partition class is now part of <boot/partitions.h>.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:39:57 +00:00
Axel Dörfler
1b9d001b66 Changed the get_file_system() call to accept a Partition instead of a Node.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4675 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:39:03 +00:00
Axel Dörfler
da42afdf62 Made the Partition class public again - it's handy to use for some file
systems in order to retrieve some parameters.
Changed the get_file_system() call to accept a Partition instead of just
a node.
Introduced the namespace boot to the public headers; I guess I should
put all classes in there (compilation of the intel partitioning system
fails without the namespace, because it defines a class Partition itself).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 16:38:10 +00:00
Waldemar Kornewald
c2a58f5169 Added MRU option handler.
Fixed wrong definition of MRU.
Added the StackControl() method to all handlers (expect PPPDevice) and changed how the netstack ioctls are passed to the handlers.
Added a template for iterating over indexed lists (needed methods: CountItems() and ItemAt()). This simplified StackControlEachHandler() a little bit.
Some minor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-14 13:24:24 +00:00
Waldemar Kornewald
7ff713dadd Replaced some pointers with references.
Added support for Protocol-Field-Compression including the needed handler.
Added initial support for ppp_manager's ioctl() function (currently, PPPInterface does not handle any ioctls). These calls are routed to all handlers, too (if PPPInterface did not handle the ioctl).
Changed naming of local states and report codes (authentication, etc.). These now have "Local"/"LOCAL" in their name.
Some minor changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-13 17:57:12 +00:00
Axel Dörfler
6151971100 Implemented scanning the whole device tree for bootable devices (that are
understood by the OpenFirmware).
That makes it work on both, the Pegasos and the PowerMac G4 (any Mac with
OpenFirmware v3 should do, though).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-13 15:48:46 +00:00