-
plasma41
Where do I find the source code for the program described by this manpage?
man.freebsd.org/cgi/man.cgi?query=l….2-RELEASE&arch=default&format=html
-
VimDiesel
Title: lint(1)
-
plasma41
If there's a link on that page to the associated package/port/whatever-the-BSD-nomenclature is, I'm not seeing it.
-
plasma41
-
VimDiesel
Title: lint(1)
-
plasma41
I tried searching the git repositories at git.freebsd.org, to no avail. I'm much more familiar with how Debian is organized than I am with any of the BSDs.
-
plasma41
Ok, I think I found the source for that file. I cloned git.freebsd.org/git and checked out the release/11.2.0 tag. It appears the troff source for that manpage is at usr.bin/xlint/xlint/lint.1
-
plasma41
I think what was throwing me off was that I was also trying to find the source of lint(7) which is referenced in that manpage. I tried searching for a file named lint.7 but it actually comes from the shell script usr.bin/xlint/lint1/makeman which does little more than cat out the manpage from a large block quote in the script.
-
plasma41
I guess even an unresponsive IRC channel makes a decent rubber duck
-
meena
plasma41: 👍
-
parv
Man! zfs-destroy & zsf-release on different snapshots c 2021 of same dataset (~50 TB) for ~30-90 GB took worryingly long time for relatively low space. Finished without issue thankfully.
-
parv
"zsf-release"! Oh Noes!
-
dch
plasma41: for built-in tools (userland etc) then `whereis $thing` tells you the manpage, binary location, and src code
-
dch
`whereis jail` returns `jail: /usr/sbin/jail /usr/share/man/man8/jail.8.gz /usr/src/usr.sbin/jail`
-
Remilia
parv: a friend once was busy destroying snapshots that were taken every 15 minutes over 2 years or so
-
Remilia
it took him 4 days
-
parv
Damn! Interesting.
-
parv
Remilia, Well, that certainly puts the expected time to finish in perspective
-
dch
I would expect zfs channel program to do that much better
-
dch
-
VimDiesel
Title: Understanding ZFS Channel Programs | Klara Inc
-
dch
its perfect for that sort of stuff
-
parv
dch, delphix URL says 404.
-
parv
Am aware, but have not looked deeply into that. Will do soon, thanks to your nudge, dch
-
dch
how odd.
delphix.com/blog/proposed-zfs-feature-channel-programs is not the one I bookmarked, but its a reasonable intro
-
VimDiesel
Title: Proposed ZFS Feature: Channel Programs | Delphix | Delphix
-
parv
dch, Thanks
-
dch
for context I have some automated CI stuff that ends up with 10_000 snaps if I'm not paying attention, and doing a zfs send of that is basically unusable.
-
dch
so I trash the older snaps with a channel program
-
dch
can I *clear* the bootfs property on a zpool?
-
dch
I have 2 zpools (a split ex-mirror) while I convert a 14.x compat pool to a 13.x compatible one
-
dch
and only want 1 zpool to boot
-
tsoome
dch zpool inherit bootfs
-
dch
tsoome: only zfs-inherit, unless you have some illumos trickery that hasn't trickled upstream yet
-
yuripv
there's no inherit for zpool? try just zpool set bootfs= pool
-
dch
tried that too
-
dch
I'm rebooting now and will use the loader to switch
-
yuripv
works for me (tm)
-
dch
my bad, I tried none but not `= `
-
dch
good tip, now lets see if I can get back from the loader prompt :D
-
dch
well now I am indeed in the shit
-
dch
OK set vfs.root.mountfrom=zfs:zboot/ROOT/default
-
dch
and also with zroot (because the original half of the mirror)
-
dch
neither can load kernel
-
tsoome
why?
-
dch
that is a good question "no bootable kernel" is all I get
-
tsoome
ls /boot/kernel ?
-
tsoome
show currdev ?
-
dch
ooh I only set vfs.root.mountfrom, not currdev
-
dch
lszfs zboot shows the expected bits
-
tsoome
set currdev=zfs:zboot/ROOT/default:
-
dch
tsoome: whats with the trailing : there I would never have guessed that
-
dch
man 8 loader_simp has the info
-
dch
a new manpage for me
-
tsoome
all device names end with : :)
-
dch
It Is The Way
-
dch
ok, lets see if we can get 13.2-BETA2++ to work on this
-
otis
dch: loader_simp wasn't in 13.1
-
dch
otis: oh good, then its not just me forgetting/ignoring stuff :D
-
dch
dch_simp
-
otis
dch: in 13.1, loader(8) contains that info
-
dch
all that just to reboot into 13.2-BETA2 ... phew
-
dch
tsoome, yuripv thanks for the tips
-
otis
is this covered by handbook?
-
tsoome
yw
-
f451
hi
-
f451
whats the best method of importing a freebsd instance in azure to another site into bhyve?
-
daemon
f451, not sure if 'best' but dd would work, just boot it in single user mode and poke out a con via ssh or netcat to something big enough to hold the instance
-
daemon
from there you can boot it via bhyve or qemu and do any method you like
-
daemon
or just use the image potentially
-
daemon
could dd to a zfs vdev or w/e you want
-
daemon
zvol*
-
f451
daemon: ok, thanks. i thought it'd involve dd. fortunately there's (non-zroot) a large zfs disk, i can dd to a file there then compress it as much as possible
-
daemon
yep
-
daemon
there is also possible a solution with dump and restore
-
daemon
but I always found using dd 'just always works'
-
f451
i was concerned with the 'disk' (the ufs one) being /dev/label/rootfs
-
sarmonsiill
Hi everyone. I have a very strange problem with my freebsd desktop. After a reboot my my network seems down. I cannot reach anything internal nore external. I've tried lots of things but cant figure it out. The strange thing is i'm getting all the ip settings from my DHCP server. I even tried to bind the mac to a different IP in the dhcp then restarted netif and routing and i'm getting the new ip
-
sarmonsiill
but still cannot reach anything.
-
f451
daemon: thanks
-
f451
also +1 to the 'dd just always works' ;)
-
daemon
yup the old tools are the best :)
-
f451
was a but worried cos the 'disk' is vxd or something, cant remember
-
sarmonsiill
tried setting hw.vtnet.csum_disable="1" in /boot/loader.conf tried setting static ip, changed from DHCP to SYNCDHCP in rc.conf . changed dns and doublechecked default gateway etc. nothing
-
daemon
f451, it can be whatever it likes, that is the base format dd does not care it cares what bits and bytes the drive says it has, so perfect for throwing around different backin volumes
-
sarmonsiill
and never mind. tried to disable ipfw now and suddenly it works *sigh*
-
f451
xlnt.
-
daemon
f451, oh one warning ... remember that when you get it running in bhyev the device names or uuid's may change; if that happens boot it up with cd or memstick image mount / read/write and edit fstab to be what it should be
-
f451
oh yeah, thanks
-
f451
mdconfig is our friend here
-
f451
i'll make a bhyve swap partition on a seperate image too
-
drobban
I need to swap out some components in my computer. Motherboard/RAM/CPU. Discovered some heavy memory problems...
-
drobban
Trying to decide if I should go with intel or amd.. Is there something to be aware of before purchasing cpu/motherboard when it comes to support... or is the hardware 100% supported (ish)
-
Demosthenex
go POWER. tailos has a cool board
-
Demosthenex
no idea if bsd works there
-
Demosthenex
but it'd be worth many internet points
-
mrtnt
Any ideas, why the memset() doesn't cause segfault while the malloc() returns NULL:
paste.debian.net/plainh/aa9f52ab ?
-
drobban
mrtnt: optimized away perhaps
-
drobban
compile it with cc and have at it... then it will segfault, when added some extra prints to the mix =D
-
drobban
aah, behaves the same. sorry
-
paulf
mrtnt is this PPC specific
-
paulf
?
-
mrtnt
drobban: it's strange that for example "memset(NULL,'x',10);" segfaults, but "memset(malloc(-1),'x',10);" does not
-
mrtnt
paulf: not to my knowledge, but i can try on x86-64
-
mrtnt
paulf: I tested on x86-64 machine running Linux and it behaves the same: "memset(NULL,'x',10);" segfaults, but "memset(malloc(-1),'x',10);" does not
-
paulf
Hmm
-
paulf
On Linux I get a segfault from your paste example
-
mrtnt
paulf: I just wanted to write, that I get the segfault both on PPC FreeBSD and x86 Linux if I compile with cc
-
paulf
Which compiler is cc?
-
Remilia
gcc on Linux
-
Remilia
I think only one Linux distribution uses Clang and that one has not yet officially been released
-
mrtnt
paulf: "FreeBSD clang version 13.0.0" on FreeBSD machine and "cc (Debian 10.2.1-6) 10.2.1 20210110" on Debian 11 machine
-
Remilia
yep that is gcc 10
-
paulf
With or without optimization? With optimization It may see that malloc(-1) is UB and optimize it away
-
Remilia
on FreeBSD/amd64 I get a segfault from that code if I compile with -O0
-
mrtnt
paulf: yes, I ran "gcc -O1 -g -Wall ..". Sorry, I should have mentioned this. Without the "-O1" I get the segfault even when compiling with gcc
-
Remilia
any higher and it gets optimised away and never prints anything
-
Remilia
I cannot get it to print anything with -O1 and up
-
Remilia
mrtnt: you should probably look into disassembly and see what it is actually doing
-
paulf
The compiler can also see that the memory allocated by malloc is never used
-
paulf
0000000000401140 <main>:
-
paulf
401140: 31 c0 xor %eax,%eax
-
paulf
401142: c3 ret
-
paulf
(clang 14 on amd64 RHEL 7.6)
-
meena
if you're lucky, -O0 won't mangle it
-
Remilia
paulf: 31c0 is basically a nop
-
Remilia
when you do not touch eax afterwards, that is
-
yuripv
it's return value though so not a nop (setting it to 0)?
-
Remilia
oh right, it is also used as mov eax,0
-
Remilia
to shorten the instruction
-
drobban
What do you guys say. Should I stay away from AMD Ryzen 9 - is there any known issues running freebsd with such a machine?
-
ngortheone
drobban: I am running Ryzen 9 5950x with no problems on 14-CURRENT
-
ngortheone
buildword with -j32 takes ~20 minutes
-
ngortheone
roughly a year ago there was a little bit of stuttering on desktop systems, that it was fixed
-
debdrup
drobban: typically the CPU / architecture isn't the confounding factor, but the almost unbounded set of peripheral devices that get attached on motherboards.
-
drobban
debdrup: thats my primary source of concern as well
-
drobban
Am I making a misstake going for something new in general?
-
debdrup
drobban: the answer to that is typically to have a look at
dmesgd.nycbug.org
-
drobban
debdrup: thanks
-
debdrup
There's even a fortune that explains how to submit the information, see `fortune -m dmesgd /usr/share/games/fortune/freebsd-tips`
-
drobban
=)
-
debdrup
bsd-hardware.info might also have some information, but I'm not as familiar with that site.
-
VimDiesel
Title: BSD Hardware Database
-
nbari
Hi, dmesg show that my wifi card in theory seems to be supported but when doing "ifconfig wlan0 create wlandev iwlwifi0" I always get: ifconfig: SIOCIFCREATE2 (wlan0): Bad address
-
nbari
any ideas ?
-
polyex
im trying to mount a usb flash drive and it's not showing up. no errors in /var/log/messages. so i tried fsck /dev/da0p1 and it's asking "ADD SUPERBLOCK CHECK-HASH PROTECTION? [yn]" what's that mean tho?
-
CrtxReavr
file -s /dev/da0
-
CrtxReavr
Also: file -s /dev/da0p1
-
jwmaag_
nbari: try `ifconfig wlan create wlandev iwlwifi0` instead of `wlan0 create`
-
polyex
-
polyex
i haven't answered yes or no to the add superblock check-has protection question
-
rtprio
it will probably ask you next time if you say 'no' now
-
polyex
so i should say yes? what even is that feature? searched web didn't find anything
-
CrtxReavr
Well, that tells me /dev/da0p1 is a uffs2 partition. . . so it shoudl be safe to say yes.
-
CrtxReavr
And let fsck do its thing.
-
polyex
and add inode check-has protection is yes too?
-
polyex
sorry i've just never encountered these before
-
polyex
ok answered yes to that, it ran, fs marked clean now it mounts fine
-
polyex
i wonder wtf happened
-
debdrup
ufs2 doing its job as good as it's able
-
CrtxReavr
I would just: fsck -y /dev/da0p1
-
rtprio
searching for that "ADD SUPERBLOCK..." reveals a few commits about ufs
-
CrtxReavr
And let 'er rip.
-
rtprio
perhaps that happened between creation and mounting it now
-
debdrup
Not sure just passing -y to fsck is the best idea..
-
CrtxReavr
debdrup, well, the alternative would probably require a hex editor and a pair of tweezers.
-
CrtxReavr
So. . . now what do you think?
-
rtprio
CrtxReavr: or pressing 'y' a few times
-
rtprio
c'mon man
-
debdrup
What.
-
CrtxReavr
From my experience, it can mean pressing y *A* *LOT*
-
CrtxReavr
So press y, 'til you get tired of it, control-C out of it, then restart it with -y
-
CrtxReavr
That's an all too common workflow.
-
CrtxReavr
>=]
-
rtprio
we don't all play fast and loose with our filesystem; and for somthing like this, it's proably one or two confirmations and gtg
-
CrtxReavr
Who knows what he did.
-
CrtxReavr
Besides, it's up to the user to have backups.
-
CrtxReavr
rtprio, you've never run fsck where it's thousands of confirmations?
-
rtprio
yes, but i make sure it's going to need thousands of confirmations before running -y blindly
-
polyex
13.2 is coming next month i'm so excite
-
» CrtxReavr is still a 12.x luddite.
-
polyex
gonna finally learn about jails and how to containerize my deployments
-
polyex
lol imagine still running 12.x
-
polyex
might as well install debian or smth
-
CrtxReavr
It's very rare I see a OS feature that makes me track the latest releases.
-
CrtxReavr
Name a feature 13.x has that 12.x doesn't an how you make use of it?
-
rtprio
it's not for everyone
-
CrtxReavr
"But but but the number is bigger!"
-
polyex
anyone around that's deploying as containers? curious what the 50k ft view looks like. i guess based on jails? i really like the idea that i can take a $2 vps and basically subdivide it for as many totally isolated projects as i want
-
polyex
instead right now i gotta either make projects share a vps or dedicated 1 vps per project
-
rtprio
jails can work, but if you're on a $2 vps you'll have to have some proxy for all of them
-
polyex
what's the bit about a proxy?
-
polyex
and let's call it a $10 vps
-
rtprio
how many ip addresses do you get with that vps? 1
-
BarnabasDK
rtprio, exactly
-
rtprio
or you're paying $10 more for a couple of ips
-
polyex
ipv6 are free :)
-
BarnabasDK
if you only get one IP for it - then you need to do some magic on the host node in order to distribute traffic to loopback devices
-
BarnabasDK
for http(s) lets say
-
rtprio
polyex: sure, if you only want nerds to access your services
-
BarnabasDK
and cheap vps servers usually don't have many cores
-
BarnabasDK
well the price does not really matter - if you only get one :-) ipv4 or six
-
BarnabasDK
you have to do the same hackery to make it work
-
rtprio
polyex: ok, routing the ipv6 to your jails would absolutely work
-
polyex
k so i'll only deploy as many containers to a host vps as i have separate ips
-
debdrup
You can also use vnet and NAT.
-
debdrup
With the right set of sysctl(8) OIDs, I think it's even possible to make it so that your service provider can't detect (based on network traffic, at least) that there's any address translation going on.
-
concrete_houses
I say get rid of virualization just use ha-proxy and werc.cat-v.org
-
rtprio
debdrup: do some care about that?
-
concrete_houses
get rid of databases
-
BarnabasDK
polyex, depends - you need to have as many ips as hosts you plan to have public internet access at least I think. Say for hosting http(s) - else you have to start running stuff on other ports per debdrup say 8080 and nating
-
concrete_houses
get rid of MBA and project people
-
concrete_houses
have king and free houses
-
concrete_houses
how is freebsd > netbsd?
-
xtile
freebsd actually gets security updates
-
BarnabasDK
netbsd used to run on everything
-
BarnabasDK
I haven't followed it for years
-
rtprio
just because it runs doesn't make it usable
-
BarnabasDK
for practical uses - no but for experiments - it does
-
debdrup
rtprio: I have vague memories of needing it, but can't remember the context.
-
BarnabasDK
way back in the day I had it running on my amiga 2000
-
BarnabasDK
I would buy an amiga again just because old times - but damn the mc68xxx series cpus have become expensive
-
BarnabasDK
should have kept my 68040
-
BarnabasDK
a used 68060 in the right rev is so expensive it will make your eyes water
-
BarnabasDK
have anyone ever tried the actual commodore unix?
-
BarnabasDK
did not know it existed until about a couple of years ago
-
BarnabasDK
think it was a system V derivative
-
xtile
I'd like to try a System V some day but they're generally made difficult to use and run.
-
rtprio
using pkg how do i extract tmux from 'tmux-3.3a'
-
rtprio
i swear i get tripped up on this every single time
-
yuripv
pkg query %n tmux
-
yuripv
or %o if you want origin
-
rtprio
%n, yeah; i somehow find myself in a situation where i always get the full name-version and what i need is the short name
-
rtprio
(for pkg_cutleaves exclude)
-
vext01
hi, what's the best way to share files from the host into bhyve vms? NFS?
-
rtprio
i would probably use nfs
-
michaeldexter
Agreed
-
vext01
thanks
-
vext01
nothing like docker's "volumes" exists for bhyve then?
-
vext01
also, hi michaeldexter
-
vext01
we've been chatting on mastodon :)
-
michaeldexter
There is a simple 9p server in bhyve that can be used with Linux VMs. Hi!
-
michaeldexter
You CyberPickle932?
-
vext01
not me :)
-
vext01
I'm a filthy openbsd dev
-
michaeldexter
That's a thing? :)
-
vext01
haha
-
polyex
big respect to openbsd
-
michaeldexter
Likewise.
-
michaeldexter
"If you want to hate on OpenBSD, remove SSH and related tools from your system"
-
vext01
michaeldexter: we spoke about supermicro ipmi and zfs recently
-
michaeldexter
OpenCON/London?
-
vext01
michaeldexter: correct
-
michaeldexter
HEY!
-
vext01
HEY indeed
-
vext01
disks for new home server arrived today, and it's getting freebsd this time
-
vext01
zfs just makes sense
-
vext01
i asked this in the openzfs channel, let's see if we get any other answers
-
michaeldexter
But it's a laying violation! (Every OBSD Dev)
-
michaeldexter
vext01: Ping me here or better on Skype as needed. I am not a cool kid with a persistent IRC history. :(
-
vext01
if you do mirrored zfs on root, what do you do to keep the system bootable should the boot disk die?
-
michaeldexter
vext01: Both sides of the mirror should be bootable. FWIW, have you looked at TrueNAS CORE? It does lots of housekeeping for you.
-
vext01
michaeldexter: I like to do it myself
-
vext01
that way I understand it
-
michaeldexter
Amen
-
michaeldexter
Are you separating boot from storage?
-
vext01
michaeldexter: yes
-
michaeldexter
FreeBSD does not assist with creating the storage array, though the boot configuration is good/good enough. I suggest one script the array configuration. How many disks are you planning for?
-
michaeldexter
vext01: I need to run to a call but you can reach me on several other platforms by this exact same user name. Except bsd.network where for once I got the name I wanted.
-
debdrup
vext01: generally you'll want to put partitions on all disks that'll be part of the pool, and partition every disk with an identical bootblock (gmirror(8) is good for this)
-
debdrup
If one disk dies, the firmware should start from the one that isn't dead.
-
vext01
michaeldexter: thanks
-
vext01
debdrup: sweet
-
debdrup
vext01: this, of course, assumes that disks don't lie - but since they do, you can get into a situation where the firmware will think that the disk is fine, so you'll manually need to switch boot disks.
-
vext01
debdrup: when i have the second root disk in my hands I may prod you for advice on gmirror etc, if that's ok?
-
debdrup
-
VimDiesel
Title: MasonLoringBliss/ZFSandGELIbyHAND - FreeBSD Wiki
-
debdrup
Ah, I see that's been switched away from using gmirror - still should work fine, though.
-
plasma41
Where can I find the source for the FreeBSD icon? (Specifically just the icon portion of the logo, not the full logo with wordmark.)
-
mason
plasma41: There's
freebsd.org/art
-
VimDiesel
Title: FreeBSD Art | The FreeBSD Project
-
mason
-
VimDiesel
Title: Project | FreeBSD Foundation
-
mason
That includes usage restrictions and guidelines.
-
plasma41
mason: I tried downloading the zip file on that second page, but it only includes images of the full logo, not just the icon by itself.
-
mason
looking
-
mason
plasma41: Hm, it includes it when I download it here.
-
plasma41
The website favicon
freebsd.org/favicon.ico is of the icon alone, but I would like something that is higher resolution.
-
plasma41
mason: Which directory?
-
mason
plasma41: Download the archive again, and look for FREEBSD_Logo_Vert_Pos_RGB.png
-
mason
Archive/Vertical/Full Color/Positive/RGB/FREEBSD_Logo_Vert_Pos_RGB.png
-
mason
Thanks to: find FreeBSD\ Logo\ Archive/ -name '*.png' -execdir xv {} \;
-
mason
There might be another more suitable but that's the first I found that was just the logo.
-
plasma41
mason: That file has the wordmark underneath the icon.
-
la_mettrie
ASCII logo appears at least in these source files: stand/forth/logo-orb.4th | stand/forth/logo-orbbw.4th | stand/lua/gfx-orb.lua | stand/lua/gfx-orbbw.lua
-
plasma41
I could cut it out with gimp, but I'd prefer to find the source file that was used to compose the image of the full logo.
-
mason
Oh, interesting, xv didn't show the words.
-
plasma41
mason: Does xv have a black background?
-
Kalten
/boot/logo-beastiebw.4th and /boot/logo-beastie.4th for nice ASCII ones ;-p
-
mason
Mm, not seeing the graphic by itself. If you write to the Foundation folks, they're friendly/helpful and can probably point you to the right thing.
-
plasma41
mason: Ok, thanks for your help.
-
mason
-
VimDiesel
Title: Contact Us | FreeBSD Foundation