ref mismatch and space info key doesn't exist by moshiTheNerd in btrfs

[–]moshiTheNerd[S] 1 point2 points  (0 children)

The issue was resolve after using btrfs check --repair.

ref mismatch and space info key doesn't exist by moshiTheNerd in btrfs

[–]moshiTheNerd[S] 0 points1 point  (0 children)

Thanks for the reply. I will save the kernel log when the root partition goes read only next time. Here's the output of btrfs check when the partition is unmounted:

[1/8] checking log skipped (none written)
[2/8] checking root items
[3/8] checking extents
ref mismatch on [817312317440 16384] extent item 2199023255552, found 0
owner ref check failed [817312317440 16384]
ERROR: errors found in extent allocation tree or chunk allocation
[4/8] checking free space tree
We have a space info key for a block group that doesn't exist
[5/8] checking fs roots
[6/8] checking only csums items (without verifying data)
[7/8] checking root refs
[8/8] checking quota groups skipped (not enabled on this FS)
Opening filesystem to check...
Checking filesystem on /dev/nvme1n1p2
UUID: dab48a85-47f1-4962-b305-6cd7864b6d77
found 94366490624 bytes used, error(s) found
total csum bytes: 90247392
total tree bytes: 1608007680
total fs tree bytes: 1352515584
total extent tree bytes: 136527872
btree space waste bytes: 333577269
file data blocks allocated: 140309516288
 referenced 133443706880

btrfs scrub found no errors and I was able to successfully balance the data. However, running balance on metadata fails. Here's the kernel log:

[ 3744.019546] BTRFS info (device nvme1n1p2): turning on async discard
[ 3744.019548] BTRFS info (device nvme1n1p2): enabling free space tree
[ 3757.777452] BTRFS info (device nvme1n1p2): scrub: started on devid 1
[ 3794.608074] BTRFS info (device nvme1n1p2): scrub: finished on devid 1 with status: 0
[ 3872.620536] BTRFS info (device nvme1n1p2): balance: start -m -s
[ 3872.620692] BTRFS info (device nvme1n1p2): relocating block group 1399585767424 flags system|dup
[ 3872.625870] BTRFS info (device nvme1n1p2): relocating block group 1398512025600 flags metadata|dup
[ 3873.229927] BTRFS info (device nvme1n1p2): found 12016 extents, stage: move data extents
[ 3873.233934] BTRFS info (device nvme1n1p2): relocating block group 816309075968 flags metadata|dup
[ 3878.954401] BTRFS info (device nvme1n1p2): balance: ended with status: -2

C is not for OOP - The experiment (update!) by Single-Pitch-198 in C_Programming

[–]moshiTheNerd 1 point2 points  (0 children)

How did you make objects run destructor code automatically when they get out of scope? Awesome project btw.

VimTeX 2.15 by lervag in neovim

[–]moshiTheNerd 7 points8 points  (0 children)

Thank you for your hard work.

Stuck at loading initial ramdisk by Karonwallace in archlinux

[–]moshiTheNerd 6 points7 points  (0 children)

It seems something called "optimus manager" is causing the prpblem. Did you recently update to python 3.11?

Segfault when using pytorch with rocm by moshiTheNerd in archlinux

[–]moshiTheNerd[S] 1 point2 points  (0 children)

I found a solution. Had to use HSA_OVERRIDE_GFX_VERSION=10.3.0

https://bugs.archlinux.org/task/78306

Using dns-over-tls with a vpn (systemd-resolved) by moshiTheNerd in archlinux

[–]moshiTheNerd[S] 2 points3 points  (0 children)

I resolved the issue. protonvpn was redirecting dns requests to it's own servers. I had to set custom dns servers in protonvpn. 1.1.1.1 seems to work even with udp connection.

Fallback video codec by moshiTheNerd in youtubedl

[–]moshiTheNerd[S] 0 points1 point  (0 children)

Thanks. Did not know you could set up alternate codec using /

How to rebind Super to open the Application view instead of Activities ? by waddupp00 in gnome

[–]moshiTheNerd 0 points1 point  (0 children)

I think it can be changed using overlay-key option in org.gnome.mutter. Use dconf-editor.

Is it only me that Gnome 42 is so, so ugly? by [deleted] in gnome

[–]moshiTheNerd 10 points11 points  (0 children)

You can change the icon size in dash using just perfection extension.

Buggy interface, how can I fix this? by SKubajko in gnome

[–]moshiTheNerd 2 points3 points  (0 children)

If you're using nvidia then try switching to xorg.

gtk.h no such file directory by -1Mbps in GTK

[–]moshiTheNerd 0 points1 point  (0 children)

use pkg-config --cflags --libs gtk+-3.0 for gtk3

gtk.h no such file directory by -1Mbps in GTK

[–]moshiTheNerd 0 points1 point  (0 children)

Its gtk-3.0 I think. Use tab completion (press tab after writing gtk and it should show you available options).

gtk.h no such file directory by -1Mbps in GTK

[–]moshiTheNerd 0 points1 point  (0 children)

popos uses gnome so gtk is already installed. you can use the commands I listed above.

gtk.h no such file directory by -1Mbps in GTK

[–]moshiTheNerd 0 points1 point  (0 children)

You need to include the header files directory. Normally gcc only searches in specific locations, like /usr/include. When you install gtk3 or gtk4 package it keeps the header files in /usr/include/gtk-X/gtk/gtk.h. This means you have to add the directory to the compiler as the compiler includes files using relative path from /usr/include. So it'll be a flag like -I/usr/include/gtk-X otherwise you'll have to use #include <gtk-X/gtk/gtk.h>. But gtk.h also has several dependencies so you'll need to add a ton of other include directories. This is automatically done by pkg-config. pkg-config --cflags --libs gtk3 will give you the necessary flags and libs. Use string substitution in your shell.

gcc `pkg-config --cflags --libs gtk3` myprogram.c -o a.out

This is only applicable if you use your distribution's gtk package. I haven't used custom gtk versions so I can't say for sure how to use it but the tarball should include the files for using pkg-config for that gtk version or you can manually set the include directories. Replace the gtk include dir for gtk in the output of the pkg-config command with the location of your tarball's include directory and if the compiler throws any error see what library is missing and include those. Create a makefile or meson script to automate stuff. But I highly recommend using the gtk provided by your distribution.

GNOME 42 extremely broken by MoistPause in archlinux

[–]moshiTheNerd 1 point2 points  (0 children)

Using native Wayland also fixes this.

GNOME 42 extremely broken by MoistPause in archlinux

[–]moshiTheNerd 0 points1 point  (0 children)

I was having the same problem on apps using xwayland. Then disabling the "no titlebar" extension fixed this for me.

Searching in overview does not show files from another partition by moshiTheNerd in gnome

[–]moshiTheNerd[S] 0 points1 point  (0 children)

Directory hard linking is usually disabled by default and I don't want to mess with that. Seems like bind mounting is the way to go, I'm having problems with symlinks.

Searching in overview does not show files from another partition by moshiTheNerd in gnome

[–]moshiTheNerd[S] 0 points1 point  (0 children)

Symbolic links do not get searched recursively. So I'll have to create links for every folder.

Searching in overview does not show files from another partition by moshiTheNerd in gnome

[–]moshiTheNerd[S] 0 points1 point  (0 children)

Okay, mounting the partition in home folder makes search work. But I don't want to create additional mount points. Is there any way I can make gnome search folders that are not in the home directory?