367 Commits

Author SHA1 Message Date
Tyler Dauwalder
c6b0bb0480 Missed a #include <stdio.h>
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:23:59 +00:00
Tyler Dauwalder
9b6661b079 Added PartitionMap.cpp to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:10:56 +00:00
Tyler Dauwalder
0d383564c3 - Added beginnings of volume descriptor sequence walking code.
- Accounted for addition of "udf_" to beginning of on-disk structs.
- Accounted for Block<typename> to MemoryChunk change


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:06:43 +00:00
Tyler Dauwalder
81d91d069a Added DUMP() and PDUMP() macros.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:04:28 +00:00
Tyler Dauwalder
56f47960a3 - Prepended each struct name with "udf_" to clarify which structs are actually
on-disk data structures.
- More endian-neutrality conversions
- More dump() functions


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:03:47 +00:00
Tyler Dauwalder
8a079cf89c Initial checkin. Provides mapping of partition numbers to udf_partition_descriptors.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:01:52 +00:00
Tyler Dauwalder
15eec8a161 Single-linked list courtesy Mr. Ingo Weinhold, here temporarily
until we get our kernel C++ utils library up and running.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 08:01:08 +00:00
Tyler Dauwalder
4627317bcd Initial checkin.
Slightly more typesafe static array type than built-in arrays,
with array length information stored implicitly (i.e. consuming no
physical space in the actual struct) via the arrayLength template
parameter.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 07:58:08 +00:00
Tyler Dauwalder
4873cabb06 Renamed Block to MemoryChunk, and got rid of the template
parameter in lieu of using reinterpret_cast, which turns out to
be cleaner all in all.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-27 07:57:02 +00:00
Axel Dörfler
a476bfc5b1 Now waits for a whole second on the inode to become unbusy - just in case
there is a slow drive. Note, if the system is heavily used and the thread
waiting for the inode to become unbusy is a real time thread, that time
might be not enough - don't have a better solution at hand though (other
than waiting even longer).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 22:40:14 +00:00
Axel Dörfler
3cfd8472f9 Fixed the ominous "new_vnode() already exists with different cookie" bug,
thanks to Bruno for pointing me in the right direction (that has probably cost
him several hours of his life ;-))!
Yes, it was that complicated to fix it...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 22:36:23 +00:00
Axel Dörfler
470a60786e Updated the ToDo list; thanks to Ingo I know now a little bit more about
float/double queries :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:51:19 +00:00
Axel Dörfler
6ac535c5c5 Fixed another bad bug in the block allocator: the size of the last block
of the block bitmap could be computed wrong - this could cause all sorts
of errors like: overwriting data, creating the "new_vnode with different
cookie" problem, etc.
Should really be the last bug in that piece of code ;-P


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:50:34 +00:00
Axel Dörfler
e1d37632bb Now takes changed function of Index::Update() into account - queries on
non-indexed attributes now finally work as they should.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:47:06 +00:00
Axel Dörfler
ab47860c37 Index::SetTo() now sets fName even if the index initialization failed (for
whatever reason).
Index::Update() is now allowed to be called for those indices - in this case
it will just update all live queries.
Added some comments.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:45:09 +00:00
Axel Dörfler
09ed3db89a Some minor style changes/clean ups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 01:43:14 +00:00
Tyler Dauwalder
6b3fa44dd0 Forgot to keep #ifndef DEBUG macros up to date.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3282 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-21 08:29:36 +00:00
Tyler Dauwalder
28f8fb21ea Added NULL class name argument to DEBUG_INIT() calls
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3281 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-21 07:10:25 +00:00
Tyler Dauwalder
565457fd43 Added code to search out anchor volume pointers and dump out any
volume descriptor sequences found.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-21 07:09:50 +00:00
Tyler Dauwalder
6cbf5bf379 - Added option to include class name with DEBUG_INIT() to so it's clearer which
dump() or init_check() or what have you function is printing out debug info.
- Added DUMP_INIT() for dump() functions
- Added tabCount option for class DebugHelper.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3279 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-21 07:08:31 +00:00
Tyler Dauwalder
fbdfed8191 - Fixed union/struct bitfield tricks so they should actually work as desired now
- Started the mind numbing task of making all the disk structs endian-neutral
- Started the addition of dump() functions
- Updated descriptor_tag::init_check() to treat the location() field as a disk
  block instead of an absolute address.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3278 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-21 07:03:18 +00:00
Tyler Dauwalder
f896590804 Added DEBUG_INIT() categories.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-14 05:42:29 +00:00
Tyler Dauwalder
778d70ca00 - Added category support
- Moved doxs from header to cpp file


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-14 05:18:41 +00:00
Tyler Dauwalder
fd67013594 Apparently I'm not allowed to link kernel modules to libroot.so... :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-14 05:17:35 +00:00
Tyler Dauwalder
be45fb85b6 Revamped debugging macros:
- Updated macro formatting to be more readable
- Changed semantics to be more to my liking
- Added neat-o automatic call-stack indenting
- Added more detailed macro docs


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-12 21:45:41 +00:00
Tyler Dauwalder
a44384b038 Hadn't intended to lose a step of revision history along
with the rename from Debug.{h,cpp}. This is what the
first revision of UdfDebug.{h,cpp} should have looked
like. The new updated version shall follow in the next
revision.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3224 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-12 21:43:11 +00:00
Tyler Dauwalder
13d4aa9ef9 Debug.cpp => UdfDebug.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3223 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-12 21:34:25 +00:00
Tyler Dauwalder
ccbc83414f - Started udf_mount() implementation.
- Updated to use revamped debug macros


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-12 21:33:53 +00:00
Tyler Dauwalder
4ac730182d - Started on volume recognition; volume recognition sequence walking implemented.
- Updated to use revamped debugging macros.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-12 21:33:03 +00:00
Tyler Dauwalder
9feb1a7258 - Renamed vsd_header to volume_structure_descriptor_header
- Extern'ed previously un-extern'ed char* constants
- Added volume_structure_descriptor_header::id_matches()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3220 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-12 21:30:38 +00:00
Tyler Dauwalder
0a100e1176 Made Block a template class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3219 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-12 21:28:21 +00:00
Tyler Dauwalder
fe89a5bae9 Renamed Debug.{h,cpp} to UdfDebug.{h,cpp} to cut down on
the proliferation of files named Debug.*


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3218 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-12 21:27:28 +00:00
Tyler Dauwalder
edd2334c85 Finished off the majority of the ECMA-167 Part 4 structures
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-06 07:26:48 +00:00
Tyler Dauwalder
4a547c1282 Initial checkin.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 22:59:34 +00:00
Tyler Dauwalder
cba5c5b207 Added udf.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 22:59:12 +00:00
Tyler Dauwalder
388e593dfa Initial checkin. Other than a few bogus implementations to allow the
udf_shell to mount, everything is just skeleton functions currently.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 22:52:59 +00:00
Tyler Dauwalder
ad43fbba82 Borrowed straight up from bfs. These will disappear when I get off my
butt and move them to /headers/os/drivers and /src/kernel/core or
wherever we agreed to consolidate them.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 22:51:12 +00:00
Tyler Dauwalder
29008bcfd8 Initial checkin. Currently does nothing particularly useful.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 22:47:29 +00:00
Tyler Dauwalder
70eaa1f5b5 Initial checkin.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 22:46:54 +00:00
Tyler Dauwalder
1a2f87c146 Initial checkin. Structures through ECMA-167 Part 3 (i.e. volume recognition)
mostly completed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 22:46:14 +00:00
Tyler Dauwalder
e75bed9707 Initial checkin. Inherited from bfs, then stripped bfs specific stuff.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 22:45:11 +00:00
beveloper
6971240d8d added to the build system
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 21:27:06 +00:00
beveloper
8187c2a594 Updated to 2001-12-11 BeBits release.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 21:21:17 +00:00
beveloper
5433f96db2 The source code in this directory is licensend under the terms of this file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 21:19:51 +00:00
beveloper
72b94394b8 Updated to 2001-04-20 BeBits release
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 21:11:36 +00:00
beveloper
ba5d0baeee Updated as of April 2, 2001.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 21:03:51 +00:00
beveloper
9168ef4ba7 Sample settings file for the dosfs plugin
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 21:02:52 +00:00
beveloper
0817da63db The dos filesystem, published by Be Inc, March 2001.
To be used under the terms of the Be Sample Code License.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 20:42:16 +00:00
beveloper
3b4e93beaf Adding the dosfs (FAT 12/16/32) to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 20:39:20 +00:00
Axel Dörfler
d4681bf67c Cleaned up. Added the TRACE() macro to kernel_interface.c.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-20 20:49:46 +00:00