Commit Graph

57466 Commits

Author SHA1 Message Date
hyche
0d726c5cde BTRFS: Enhanced node search slot to handle btree_traverse type
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:04:53 +02:00
hyche
fc4a1e78e2 BTRFS: Added SetRoot for tree. Tree root is initialized at mount time
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 13:04:39 +02:00
hyche
7568abd559 BTRFS: BlockNum -> LogicalAddress to prevent misunderstanding
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:56:27 +02:00
hyche
91d7f850cf BTRFS: Added binary search for item slot
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:55:53 +02:00
hyche
bd2dab1c73 BTRFS: Add some missing constants
Chunk tree objectID is 3,
256 is the objectID of first created subvolume in fs tree,
    and also of first chunk tree (item in chunk tree).

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:25:37 +02:00
hyche
1481c49cd1 BTRFS: Initialize BPath and BNode for tree manipulation
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:19:20 +02:00
hyche
875a0552ae BTRFS: Method _Compare from BTree is now in btrfs_key
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:19:00 +02:00
hyche
5f4f71665a BTRFS: CachedBlock now is writable.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:18:25 +02:00
hyche
0878766c72 BTRFS: Added TRACE macro for debugging
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:18:11 +02:00
hyche
7e8e6c2ebb BTRFS: Added retrieve sector size for later use
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:17:33 +02:00
hyche
d87124efad BTRFS: Refix ticket #12788
* Change block size to node size. Block is not always the same as sector.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:17:04 +02:00
hyche
299aba38f0 BTRFS: code cleanups
* Removed struct keyword for declaring variable.
* Renamed BPlusTree to BTree because BtrFS use a variant of BTree not B+Tree.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:16:06 +02:00
hyche
b24d4c8a32 Fixed: Code style (again)
* Pointer/Reference should be next to type
* else if -> if
* Remove trailing spaces

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2017-07-24 12:15:16 +02:00
Jérôme Duval
dbad909b4e BMediaFile: fix MediaExtractor crash.
* stop the extractor processing before deleting the source.
* crash happened in MediaPlayer FilePlaylistItem::_CalculateDuration().
* was a regression introduced in hrev50671.
* fixes #13156.
2017-07-24 11:59:05 +02:00
Jérôme Duval
13dbf47109 Revert "BView: use off_t instead of long."
This reverts commit ab3a87ed6e.
2017-07-24 08:48:28 +02:00
Augustin Cavalier
11384b58ba bin/coreutils: Remove; now unused since previous commit. 2017-07-23 11:08:34 -04:00
Augustin Cavalier
95295296cd multiuser: New implementation of su.
We're still using the (now-deprecated) coreutils su, so this is
a replacement for that. It functions almost equivalently,
and supports the major arguments (-l, -c).

(Note that login/su to a non-root user is presently busted, though.
See #13583.)
2017-07-23 11:07:36 -04:00
Augustin Cavalier
eed40cb8c5 multiuser_utils: Add bool chngdir option to setup_environment. 2017-07-23 11:07:36 -04:00
Augustin Cavalier
5cc11bf479 login: Use read_password from multiuser_utils.
Also fix some extant bugs.
2017-07-23 11:07:36 -04:00
Augustin Cavalier
ec1421184a multiuser: Move setup_environment from login to multiuser_utils. 2017-07-23 11:07:36 -04:00
Jérôme Duval
0b6c89fb16 ffmpeg: implement deinterlace feature for ffmpeg 3.x.
* Use the yadif filter.
* Fixes #12731.
2017-07-23 13:03:53 +02:00
Adrien Destugues
037ea84ba5 BNumberFormat: add Parse() and GetSymbol(). 2017-07-23 11:40:25 +02:00
Adrien Destugues
6cbcfc1911 BNumberFormat: cache ICU formatters
For performance reasons, it is a good idea to keep the formatters
instanciated, instead of re-creating them each time we need to format a
number.
2017-07-23 10:24:02 +02:00
Adrien Destugues
0e4ad75e47 Remove more unneeded files from the Locale Kit
All of this is replaced by the single BNumberFormat class.
2017-07-23 09:15:42 +02:00
Adrien Destugues
b7cc4ccde6 Remove remaining include of FloatFormatParameters.h. 2017-07-22 19:47:07 +02:00
Adrien Destugues
0597752447 Remove full date format from Tracker date columns
It is too similar to the long format and does not add much value.
And it creates some problems with using a locale format with another's
string.

Fixes #11343.
2017-07-22 19:23:42 +02:00
Adrien Destugues
1416521f10 Notifications: default to application icon.
It is possible to SetIcon(NULL) to remove it.
But in msot cases we want the application icon to be the default.

as discussed in #13590.
2017-07-22 16:11:25 +02:00
Adrien Destugues
1d6af34b9a LocaleKit: remove obsolete files.
Formatting floats is handled by BNumberFormat already.
2017-07-22 12:59:12 +02:00
Adrien Destugues
e433b3cfc3 DiskUsage docs: update screenshots.
- Why were we using old BeOS screenshots here?
- Why is this not part of the user guide anyways?
2017-07-22 11:30:52 +02:00
Adrien Destugues
54de05d9d7 Fix error handling in PNG trnalsator
The default error handling code in libpng uses setjmp/longjmp. This is
annoying, because stack variables may be corrupt, unless they are
declared volatile.

Instead of declaring everytihng volatile, we can tell libpng to use
custom error functions, which will throw a C++ exception, making the
code more readable and less crashy.

Also handle the png_read_end function returning errors without failing
the whole decoding. This happens for example in the old diskusage
documentation screenshots, where this function fails after the image was
completely and correctly decoded. Ignoring the error lets ShowImage show
these pictures.

Fixes the crash reported in #6775.
2017-07-22 11:30:52 +02:00
Jérôme Duval
ab3a87ed6e BView: use off_t instead of long. 2017-07-21 18:57:57 +02:00
Jerome Duval
d4e70d1090 ffmpeg: output B_RGB32 when using libswscale. 2017-07-20 18:23:13 +02:00
Axel Dörfler
a1eceb4610 rootfs: directories must not be opened writable.
* Also added support for O_DIRECTORY while at it.
* This fixes bug #13573.
2017-07-20 10:10:20 +02:00
Axel Dörfler
84edb1a177 configure: Bumped GCC version to 2.95.3-haiku-2017_07_20.
* Script would fail otherwise, thanks korli!
2017-07-20 10:01:20 +02:00
Kacper Kasper
2aaee07095 Fix window behavior if default button is present.
* Almost all Enter keystrokes were hijacked without the ability to
  reconfigure.
* Let apps use these shortcuts.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2017-07-20 09:32:20 +02:00
Humdinger
f9e5116412 Updating jam package 2017-07-18 20:50:29 +02:00
Humdinger
c5395d791e Added Filwip package for 64bit 2017-07-18 18:03:21 +02:00
Jérôme Duval
8e7468544b Update sane_backends packages for x86_64.
* missed during rebuild.
2017-07-17 21:04:43 +02:00
Adrien Destugues
ae2c5eeeab SerialConnect: handle cancelled file transfers.
The remote can cancel a file transfer by sending a CAN character.
Handle this by stopping the transfer and hiding the progress bar.
2017-07-16 16:11:47 +02:00
Adrien Destugues
cd4d3a3010 SerialConnect: implement XMODEM-CRC
This is a common extension to XMODEM, which replaces the checksum with a
more resilient CRC.
The receiver must explicitly enable this, so if the receiver doesn't
handle it, the traditional checksum is still used. Hence, this is
backwards-compatible with XMODEM.
2017-07-16 16:00:10 +02:00
Jérôme Duval
c57b500a15 libprint: fix invalid use of long. 2017-07-16 11:35:42 +02:00
Adrien Destugues
ce058fa0a9 SerialConnect: implement XMODEM send. 2017-07-16 10:21:22 +02:00
Akshay Agarwal
b32b6a8633 Fix highlighting current system date in BCalendarView.
Changing the year in Calendar View does not remove the highlighting from
previous highlighted day.

Changing the system date to a date in a different month(different from
the month currently set in calendar view) does not remove the highlighting
from currently highlighted day.

The disabled day number text belonging to the next month (month after
the one currently selected) gets wrongly highlighted while attempting
to highlight the day number text belonging to the current month.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

ticket : #13605
2017-07-16 08:12:50 +02:00
Adrien Destugues
971c5704d5 Nebula: 64bit fix.
The code is written with 32-bit in mind, but "long" isn't always that
size.

Should fix #13604.
2017-07-16 08:11:42 +02:00
Jérôme Duval
0c7d258bb3 Update Haikuwebkit, pyqt, openshot and qt5 packages for x86_64. 2017-07-15 09:11:37 +02:00
hyche
bf5d0ce3c8 btrfs_shell for testing btrfs code.
* Adding Jamfile in src/tools/btrfs_shell and include the subdir in src/tools/Jamfile
* Adding system_dependencies.h in btrfs source to include all the system headers
* fs_shell wrapping for btrfs source. If FS_SHELL is defined, compile with fs_shell headers instead.
* Change macro BTRFS_SHELL to FS_SHELL
* Adding btrfs_std_ops function: fs_shell now can recognize and load module
2017-07-14 10:27:07 +02:00
hyche
8864a6cb2b btrfs: Code style
* Using tab instead of spaces
* Pointer/Reference should be next to type
* etc
2017-07-14 10:26:32 +02:00
Akshay Agarwal
8013f2e07d Highlight current system date in BCalendarView.
* Issue: In BCalendarView presently, there is no notion of a current date
and the current date is not highlighted. So in the deskbar tray calendar
which uses BCalendarView, we cannot know the current date once we change
the selected day.
* Fix: Make BCalendarView accept pulse messages, check for system date
with every pulse message and update the current date accordingly.
Highlight the current date by rendering its day number text in a
different color.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

ticket : #13592
2017-07-14 09:44:26 +02:00
Murai Takashi
3ceec1db72 BufferConsumer.cpp: Fix ordered comparison between pointer and zero.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

ticket : #13599
2017-07-14 09:40:30 +02:00
Murai Takashi
11ed104c2d AddressTextControl.cpp: Fix ordered comparison between pointer and zero.
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

ticket : #13598
2017-07-14 09:39:43 +02:00