Commit Graph

8709 Commits

Author SHA1 Message Date
Jérôme Duval
79de91c19b * manages blockgroups unused_inodes when the feature is available.
* BitmapBlock::FindMarked/FindUnmarked() tried to find a free bit
  at the end of a full bitmap. This fixes #7069.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40143 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-07 19:00:23 +00:00
Jérôme Duval
d482c34e49 * added flex group, dirnlink and gdtchecksum features for ext4.
* I reused crc_table.cpp from the UDF filesystem and switched it to have the reversed algorithm,
  then generated the table in CRCTable.cpp
* added a binary search for extent tree leaves.
* fixed a check in InodeAllocator::New().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 21:56:12 +00:00
Axel Dörfler
1fd632e67c * Fixed some more style violations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 19:26:44 +00:00
Ryan Leavengood
0341cc7868 Use a real random number generator instead of using a time hack. Add myself to
authors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 18:57:24 +00:00
Ryan Leavengood
415b188949 Remove kOneSixth constant, replace some uses of floats with ints, add f
specifier to float constants. Hopefully I'm done with this now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 17:53:55 +00:00
Ryan Leavengood
3107597abe Fix coding violations, improve variable naming, remove strange float constants
like 4.f.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 16:14:25 +00:00
Philippe Houdoin
1a698b259b Actually check *distinct* configurations. Checking always the first one several times wont make it works
better :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 07:37:29 +00:00
Ryan Leavengood
57d51b24ff Add two new screensavers created by students from the GCI:
Butterfly by Geoffry Song.
Leaves by Deyan Genovski and Geoffry Song.

Thanks guys!

I fixed a few coding violations and wrote the Jamfiles.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 01:10:59 +00:00
Philippe Houdoin
c5f2df286e Switched to use USB_cdc.h definitions.
Expanded search in every configuration, not only first. ELSA USB modem for instance
publish two configurations, the first one being a vendor-specific one for
Windows NT.
ACMDevice now don't assume anymore union functional descriptor is always there.
The data interface index can be found also in Call Management (CM) functional
descriptor.

(Style cleanup pending...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 17:15:18 +00:00
Stefano Ceccherini
6709424150 Added TODO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 09:34:46 +00:00
Clemens Zeidler
1cbfd712a3 Fix #7017 and hopefully #7001. WindowArea is not valid any more when splitting a group. Fix debug assert.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-02 00:19:36 +00:00
Stefano Ceccherini
27573dedcc Fix build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 16:53:23 +00:00
Stefano Ceccherini
c4b9b7dbe5 (pointers) style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 16:46:58 +00:00
Stefano Ceccherini
903625ee29 Extract the code to copy the bacbuffer to the direct window.
When in nondirect mode, SwapBuffers() wasn't respecting the vsync parameter.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40051 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-01 16:37:21 +00:00
Michael Pfeiffer
05a2fec5fb * CID 9729: initialized member fPrinter in constructor.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-28 22:11:02 +00:00
Michael Pfeiffer
0f0bd984d7 * CID 6544, 5645: removed "const" qualifier on return type
as it is meaningless


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-28 22:08:04 +00:00
François Revol
3d5a11ee4e 44100 kHz seems a lot for audio sampling rate...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-28 21:51:33 +00:00
Michael Pfeiffer
9dbc17e4f3 * CID 10346: hid unused code; I cannot remember why the
code is not used; maybe it was not implemented completly
  or BePDF could not render it correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-28 21:44:59 +00:00
Michael Lotz
2baa527f82 CID 3221: Add missing break.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-28 19:08:37 +00:00
Michael Lotz
2d5c8bdea3 CID 10552: Fix double free in error case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-28 18:55:00 +00:00
Fredrik Holmqvist
14a12acc76 Only close device if it's a valid fd. CID 3466.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-28 15:55:57 +00:00
Fredrik Holmqvist
31474ccaa0 More of the same.
Postfix/prefix increment evaluation order is not changed by parantheses. Use '+ 1' for readability instead. CID 2982.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-27 20:47:27 +00:00
Fredrik Holmqvist
0ef0a587b6 Postfix/prefix increment evaluation order is not changed by parantheses. Use '+ 1' for readability instead. CID 2983.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-27 20:40:30 +00:00
Fredrik Holmqvist
e4fbd1171c Removing get_parent_node call from acpi_enumerate_child_devices.
Afaict it looks like it results in unbalanced Acquire calls on the parent. CID 10393.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-27 17:11:40 +00:00
Fredrik Holmqvist
b44c75c5eb Modified acpi namespace driver to match ring_buffer functions.
A bit confused about the signedness handling in ring_buffer internals though, int32 to size_t.

Unnested the acpi_namespace_read function a bit and removed dead check for negative lengths from read. CID 4093.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-27 16:17:54 +00:00
Michael Lotz
dcea2eba12 CID 2196: The sanity check did check the pointer size instead of the type size.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-26 23:22:43 +00:00
Michael Lotz
79dd7e57fa Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-26 23:16:04 +00:00
Michael Lotz
6b81e70656 * CID 2195: sizeof() was used on the buffer pointer instead of the type.
* Use strlcpy() instead of memcpy() to ensure that the dirent is properly
  terminated.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-26 23:07:18 +00:00
Michael Lotz
4462c768e6 CID 8076 and 2191 (both pointing out the same): Only the first sizeof(pointer)
bytes were initialized to 0 due to wrong use of sizeof().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-26 22:42:28 +00:00
Jérôme Duval
141e1aad27 Added blockgroup Flags()/SetFlags() and flag definitions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 19:57:48 +00:00
David McPaul
51d9b4fe14 correct yuv422 planar conversion. Seperate sse, sse2 and ssse3 asm code. Add packed convertor
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 07:25:40 +00:00
Michael Lotz
88cbc0dbc5 Remove unused member. Fixes CID 9579.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 01:09:15 +00:00
Michael Lotz
d10320e0e0 It's a HIDReportItem * array not a HIDReportItem ** one. Fixes CID 8078.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 01:04:13 +00:00
Michael Lotz
beaabe98d1 Fix CID 9580 although it is harmless as the _Reset() call before parsing does
initialize the member.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 01:01:28 +00:00
Michael Lotz
13486cf531 Fix dereference after free. CID 10543.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 00:49:49 +00:00
Michael Lotz
b950cc6532 * Enlarge the device name buffer a bit as with a deep enough hierarchy we might
actually hit this limit.
* Use snprintf() instead of sprintf() as suggested by CID 6447 (even though the
  USB module isn't supposed to return such a malformed string).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39908 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 00:42:21 +00:00
Michael Lotz
bf905cfe0c * Fix another non-problematic hidden parameter CID 5218.
* Check the length of the incoming buffer before accessing it through the union.
  It's necessary to do this dependent on the operation at hand, since the caller
  doesn't need to provide the full union size and the size may differ between
  (still compatible) protocol versions.
* Replace memcpy() by user_memcpy() where data is exchanged with userland.
* Small style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39907 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 00:36:23 +00:00
Michael Lotz
3d7bd2dc23 Cosmetical change only: don't shadow the "buffer" parameter with the local
variable. Didn't matter, as the parameter is only accessed through the
usb_raw_command variable that it is casted to early in the function. CID 5219.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-21 00:06:16 +00:00
Michael Lotz
1579900f55 Fix uninitialized fAllocator member. In the error case the destructor could
crash trying to delete the not created allocator. CID 9562.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-20 23:32:39 +00:00
Michael Lotz
0153c18eed That the members aren't initialized in the constructor as pointed out by
Coverity was intentional (as explained by the comment). That the fInterval
member was somehow totally forgotten though, wasn't. This should only affect
EHCI and OHCI as they take the interval into account. Might fix some strange
behaviour, but most likely won't, as the interval range is rather narrow and
shouldn't be too noticeable if set incorrectly. CID 9558.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-20 23:24:38 +00:00
Jérôme Duval
230b9a69d3 resource leaks CID 5711, 5712, 5713, 5714
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-20 21:41:49 +00:00
Jérôme Duval
0c79e77c75 Missing va_end call. CID 10604 and 10603
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-20 19:59:46 +00:00
Jérôme Duval
5bb7d60a94 Missing va_end call. CID 10605
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-20 19:54:50 +00:00
François Revol
1828f3d72c Add a function to register media codec descriptions for the usual format families using the tag lists from libavformat itself. Untested. the plugin will also have to use av_codec_get_id() to get the codec ID from the tag.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39888 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-19 04:26:46 +00:00
Jérôme Duval
45af882d06 * added fsblock_t and fileblock_t definitions, used them when needed.
* validate fBlockShift in superblock.
* Volume::AllocateBlocks() now uses an absolute fsblock instead of a blockgroup related fsblock.
* AllocationBlockGroup now provides absolute fsblock values.
* added support for extents feature: ExtentStream class is the equivalent for DataStream class for extent operations.
  The extent tree implementation is very basic, should work for normal growing/shrinking
  operations, but not for sparse files. When enlarging a file and extent tree is full,
  the root is moved in a new block and a new level is added on top. Extents can usually
  be extended when adjacent blocks are allocated. Shrinking happens by removing leafs 
  one after another.
* removed empty IndexedDirectoryIterator.*


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-18 16:26:39 +00:00
Marcus Overhagen
699dc0e367 Very ugly hack to make DVB addon find the MPEG and AC3 codecs.
Something appeards to be very wrong with codec registration.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-17 23:17:21 +00:00
Marcus Overhagen
4da4784afa added come debugging code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39884 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-17 22:35:44 +00:00
Marcus Overhagen
bcdc4db3e5 adjust file path to channel setting files
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-17 21:54:53 +00:00
Stephan Aßmus
b6ec842de4 Patch by x-ist from ticket #6115:
* A lot of HID definitions got extracted from USB_hid.h into their
   own files. Many more definitions have been added from the specs.
 * The names have been moved into the proper B_* namspace.
 * The USB hid driver has been adapted for the changes.

Thanks a lot and sorry for the delay!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 20:23:56 +00:00
Jérôme Duval
b6e7a070e7 * checks file name length in FindEntry()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 18:26:06 +00:00