Commit Graph

61657 Commits

Author SHA1 Message Date
Augustin Cavalier
4d2de4ea40 HaikuDepot: Fix GCC2 build. 2020-05-18 22:37:23 -04:00
Suhel Mehta
ac754f75e9 ufs2: Reading inodes of ufs2.
Now file system can be mounted sucessfully.

Adding documentation for using the code.

Change-Id: I2bd1b72e06ffc3b5f6306aaa69c59becf4cb882b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2696
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-18 12:16:32 +00:00
Andrew Lindesay
9883929b9c HaikuDepot: Featured Pkgs View
This change will move the display of the featured packages
from a dynamic layout to one that is static.  This should
improve layout consistency and ui performance as well as
introduce keyboard navigation in the featured packages
list.

Resolves #11675, #15012
Helps #14675

Change-Id: Iddac7a9562763c7a890ec5dcf633e94f84684f43
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2708
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-18 06:39:21 +00:00
Augustin Cavalier
cb53bf1e28 nvme_disk: Fix nvme_qpair_submit_queued_requests.
I added this function to make the queued requests logic more robust,
but I failed to notice that since it is called from nvme_qpair_submit_request,
it would just result in a deadlock of any qpair that had requests
queued.

May help with some of the "qpair lockup" tickets.

Change-Id: I5ff63b509ae8812356d0d33f019027d3159b6685
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2735
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-18 00:23:23 +00:00
Augustin Cavalier
f37d2d10a0 idualwifi7260: C89 fixes.
Change-Id: I8138f4ed4877b3f7e8eb54ad0bc64a60278e8b61
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2734
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 23:38:30 +00:00
Augustin Cavalier
ba5694b017 idualwifi7260: Port changes from newer FreeBSD.
This adds support for the 9xxx series of devices.

Change-Id: I43385e91b91201732397b79c38bd9bb4f3a18f1b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2733
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 23:34:32 +00:00
Augustin Cavalier
a3a192c1cb acpi: Use mutex_trylock() for ACPI_DO_NOT_WAIT.
We do not need to go through all the overhead of mutex_lock_with_timeout()
if there is in fact no timeout.

Change-Id: I7891ae9138a7d45be934ac53412b82546d52b901
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2730
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 19:34:02 +00:00
Augustin Cavalier
97310aa7fc Deskbar: Fix build after last commit.
Change-Id: Ice721e56b9ff8bbdd01dde65933d6fa0c750823a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2728
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 18:42:41 +00:00
Adrien Destugues
54bff8ec82 TimeView: fix direct messaging to another window
The window may be gone (if its B_QUIT_REQUESTED was called before the
main Deskbar window one), so we can't safely call Quit() on it. Instead,
just send a B_QUIT_REQUESTED through the BMessenger, which is a bit
safer.

Should fix #16026.

Change-Id: I4c99c3a7f994044c3c3f0c08b35ae451c3ff9ea7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2721
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 18:27:13 +00:00
Adrien Destugues
d9ef4f90bb Remove GPL-licensed implementation of MD5
APE reader was using a GPL licensed version of MD5. A similar
implementation in the public domain was available in libnetapi, which I
moved to libshared so the APE reader can use it (and made some fixes,
missing const mainly). It only needs a small wrapper to use it easily
from C++ in a way compatible with the previous implementation.

Part of #13814.
2020-05-17 19:06:59 +02:00
Augustin Cavalier
8ea697ab38 HaikuDepot: Move TextDocumentTest to "tests". 2020-05-17 12:36:08 -04:00
Augustin Cavalier
150edea615 HaikuDepot: Remove usage of ICU build feature.
Not needed after the last commit.
2020-05-17 12:30:21 -04:00
Adrien Destugues
05d6891800 HaikuDepot: do not use ICU directly.
Change-Id: I0097fe51cc9b41509e5ba0d2452c5f28eac0538a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2724
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 16:00:53 +00:00
Panagiotis Vasilopoulos
79ca65ac9d Deskbar: Improved UX in the shutdown submenu
* Moved 'Power Off' on top of 'Restart system'.
* Made a few visual changes to the code that adhere better to the Haiku coding style.
* 'Suspend' is now at the bottom of the shutdown submenu.

Change-Id: I0d41e3e5656d5d9ea02e3cb072b6a6092c70c640
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2701
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 08:14:04 +00:00
Augustin Cavalier
e54b2d7cf2 kernel/lock: Fix build under non-KDEBUG.
I forgot to change MUTEX_INITIALIZER following removal of the
unused field.

Change-Id: I011c023ae00bb4576c8bcecf83546892fef3a77e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2719
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 03:36:04 +00:00
Augustin Cavalier
fd161d7bf2 kernel/locks: Remove ignore_unlock_count and fix races in lock timeout.
As far as I can tell, there is no reason to ignore unlocks, ever;
if no threads are waiting, then mutex_unlock() will act appropriately.
So all we need to do is increment the lock's count here,
as we are relinquishing our request for locking.

On the other hand, if we did not find our structure in the lock,
that means we own the lock; so to return with an error from here
without changing the count would result in a deadlock, as the lock
would then be ours, despite our error code implying otherwise.

Additionally, take care of part of the case where we have woken up
by mutex_destroy(), by setting thread to NULL and checking for it
in that case. There is still a race here, however.

May fix #16044, as it appears there is a case where ACPICA
calls this with a timeout of 0 (we should make this be
a mutex_trylock, anyway.)

Change-Id: I98215df218514c70ac1922bc3a6f10e01087e44b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2716
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 00:22:15 +00:00
Adrien Destugues
785518beef wacom: start node monitor earlier
Should fix #16003 but I don't have the hardware to test.

Change-Id: I0e6c0df7b66adf72e35e4afa272cd907427a9427
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2714
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-17 00:14:33 +00:00
X512
ec43e4f4c2 AutoDeleter: do not allow copy
Change-Id: Ieab0fea46fc23c446bbaca407e3e80a4a7901896
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2704
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-16 18:23:09 +00:00
Adrien Destugues
8ba6597509 Build fix 2020-05-16 20:13:59 +02:00
Adrien Destugues
56788ad98b Tracker: tweak FindPanel layout again
- Remove the "more options" latch
- Put the icon back on the left.

Fixes #16015
2020-05-16 20:01:10 +02:00
Niels Sascha Reedijk
9094f0c24f AboutSystem: localize copyright string
Change-Id: Ia43004bbe56bebdb32bcfd3394135ffb9b9914af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2711
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-16 17:39:30 +00:00
Adrien Destugues
59588089e7 device_manager: missing NULL checks.
We should investigate why there are anonymous or unset attributes. But
at least let's not KDL because of it.

Fixes #16038.

Change-Id: Ifd49475e25ce8dcc3e98bc22df81f0e4f493f915
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2710
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-16 17:34:35 +00:00
Adrien Destugues
872240af5f Missing file in catalog rule for libbe.
Fixes #16018.
2020-05-16 18:03:06 +02:00
Adrien Destugues
f9f9970791 Fix protracker mod sniffing rule. 2020-05-16 14:09:45 +02:00
Adrien Destugues
92db199052 Backgrounds: style fixes.
Change-Id: Id032524dc7278f843ce4fcd6132e273088d2256e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2693
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2020-05-15 21:48:15 +00:00
Adrien Destugues
e44ab82455 Restrict Protracker sniffing rule.
Unfortunately this will rule out 15-samples MOD files, but it fixes #16035.

Change-Id: If3634c8ef4228ebe7ec5f8eac9f142ffff2ca30c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2703
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-15 21:47:18 +00:00
Adrien Destugues
eb4b3f721d Check that expander is enabled before expanding items.
Fixes #16025

Change-Id: Ia69fa23ba8044c0ea14f9b669c13636e087a203d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2702
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-15 21:44:58 +00:00
Humdinger
6bd96c5234 Update "Download Haiku" graphic for beta2
* beta1 -> beta2
* rotate the "beta2" stamp as it was remarked before that the stamp
  going 'uphill' is supposed to have better vibes than 'downhill' as
  it's now...

Change-Id: I60a60a1ba36ac11817294c91deecc555582e039e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2697
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-15 01:53:13 +00:00
Niels Sascha Reedijk
899fffc069 AboutSystem: synchronize translators with contributors from Pootle
Change-Id: Ia25ab186dc799a52d537bea2233842cc7e01500f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2663
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-15 01:52:37 +00:00
John Scipione
bf207efc2b Tracker: ContainerWindow style fixes only
Change-Id: Ica388cf727cb9cffe03c948a64344be7f462e25a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2330
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-15 01:52:12 +00:00
RudolfC
64381a7b0f ffmpeg: fixed bytes_per_row calcs: now B_YCbCr422 works OK (video overlay) 2020-05-14 20:21:12 +00:00
RudolfC
61c919f268 ffmpeg: fixed error in pixfmt-colorspace conversion and added our Y_CbCr422 for overlay 2020-05-14 20:15:01 +00:00
Adrien Destugues
0f161e0136 Improve SVG sniffing
The way this rule works is it check two things:
- The document starts with "<?xml", "<svg", or "<DOCTYPE"
- In the first 512 bytes there is either an SVG or DOCTYPE SVG opening
  tag (both casze insensitive)

This should allow to correctly detect most SVG files, all while not
misdetecting other things (for example xhtml with a nested SVG) too
easily. It's difficult to be completely accurate with just a sniffing
rule.

Change-Id: I66d6e21ff694c4a6349989db2685dffb44ef5767
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2681
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-13 18:22:04 +00:00
Suhel Mehta
11d6332fe8 ufs2: Super block is detected successfully.
Change-Id: I5e99b889399fa2d7f477efb547a5923c2c79a6f9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2658
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-13 18:20:18 +00:00
Adrien Destugues
d7aa591102 dstcheck: do nothing if clock is clearly in the past.
Fixes #15855

Change-Id: I0a08863fa81ef96b16543d28d7e95731f34f60ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2684
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-13 02:07:21 +00:00
Adrien Destugues
d5a3eb04ef BCardLayout: make the first item visible.
Change-Id: I7b836a22bc5c281bec9b44859c42fec56af45574
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2683
Reviewed-by: Andrew Lindesay <apl@lindesay.co.nz>
2020-05-13 02:05:46 +00:00
X512
451cf86feb Tracker: fix debug build
Change-Id: I8a31802366b3dcbadc9ce1ba903161fa3fcad60d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2679
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-13 02:05:29 +00:00
Augustin Cavalier
9585fabd61 BColumnListView: Consider current, not preferred, column width for overall preferred with.
Otherwise, the entire list will be scanned for row widths, which
is extremely slow with thousands of items, and may not be what
the user wants anyway, if they have set specific column sizes
which are larger/smaller than that.

Helps with #16012 and #15889 considerably.
2020-05-12 21:57:37 -04:00
Axel Dörfler
194b772d8c listattr: Make sure attributes are properly terminated
* This reduces garbage in the output, especially with 0 byte string
  types.
2020-05-12 14:01:10 +02:00
Augustin Cavalier
95e5e933ab Pulse: Fix build. 2020-05-11 23:20:45 -04:00
Adrien Destugues
9c9f963ab4 Pulse: show Intel logo also on 64bit systems. 2020-05-11 21:52:48 +02:00
X512
83bd4fdac3 app_server: fix stack overflow crash if too many windows are tiled
Fixes #15796.

Change-Id: I24c29215116e6bad37f0a56e141d6fc26bbe4fb2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2680
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-11 17:10:18 +00:00
Adrien Destugues
f12419a91d Pulse: update Intel logo
They use a new logo since 2006.

While I'm at it, also add logos for Cyrix and Via which were missing
previously (there are a few other missing but they are even more
uncommon). Use vector logos which can be scaled as needed. However, the
CPU chip background is still a bitmap, so we can't scale things just
yet.

Fixes #15919.
2020-05-11 18:47:21 +02:00
Adrien Destugues
a22fff485c ActivityMonitor: fix non-i18n-friendly string
Fixes #16008
2020-05-11 17:27:49 +02:00
Augustin Cavalier
9cfe144326 BCardLayout: Do not recompute size limits on visible item switch.
The size limits are already the minimum/maximum for all views,
not just the current one, so we do not need to recompute them
when the layout is invalidated due to an item switch.

Fixes #14675, and other performance issues on switching tabs
in layouted BTabViews, among other things.

Change-Id: I55bfe4ddb8c8a79c634634cfc27113205a790c42
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2677
Reviewed-by: Andrew Lindesay <apl@lindesay.co.nz>
2020-05-11 00:41:52 +00:00
Augustin Cavalier
81f3f1485d HaikuDepot: Remove unused layout.
Change-Id: I37e06db6337cc3dcb1c1de56295a9ba3f211d630
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2676
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-11 00:41:52 +00:00
Michael Lotz
4dac95ab20 mount_server: Cleanup, remove unused isBFS variable.
This was apparently missed when the BFS warnings were removed in
hrev53458.
2020-05-11 01:23:58 +02:00
Michael Lotz
d6ddb118f3 kernel/vm: Whitespace cleanup only. 2020-05-10 23:55:25 +02:00
Augustin Cavalier
0b5d48563d fs_shell: Prevent inclusion of BSD headers; fix DeviceOpener. 2020-05-10 12:44:46 -04:00
Jérôme Duval
c74c347353 kernel/x86: detect xsave subfeatures
Change-Id: Ida635441faaea4fb060e9f77ca3f4f167dc4bfe4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2617
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-05-10 15:49:48 +00:00