mastodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance, open to everyone, but mainly English and French speaking.

Administered by:

Server stats:

789
active users

#util

1 post1 participant1 post today

There are a number of useful little functions in node:util besides util.inspect() that I’m only just familiarising myself with after admittedly rolling my own versions for a number of them. Hmm, should’ve read through this documentation page more carefully sooner.

e.g., util.deprecate(), util.diff(), util.debugLog(), util.isDeepStrictEqual(), etc.

walknews.com/858606/ トランプ氏が石炭増産目指す大統領令、環境団体は猛反発 | ロイター #AMERS #AMERSE #CLC #CO2 #COA #COAM #COAM1 #COM #DEST:NOJPTPM #DEST:NOJPWDM #DEST:NOJPZTM #ENER #ENFF #ENG #ENR #ENV #FERR #GEN #GFIN #GHGS #JFOR #JLN #METL #MIN #MTGFX #MTPIX #NAMER #NAMERE #News #NEWS1 #NGS #NRG #POL #POTUS #PWR #REGS #REPI:COAL #REPI:GAS #REPI:GRIDINFRASTRUCTURE #RSBI:CLIMATECHANGE #RSBI:SUSTAINABLEMARKETS #STE #TOPCMB #TOPNWS #TRN #US #UTIL #WASH #WRM #ニュース

wacoca.com/news/2485547/ ロシア「エネ施設攻撃停止から撤退も」、ウクライナ違反継続なら=報道官 | ロイター ##war #AMERS #Asia #ASXPAC #CEEU #CISC #com. #CWP #DEST:NOJPTPM #DEST:NOJPWDM #DEST:NOJPZTM #dip #DISP #EEU #EMEA #EMRG #ENER #ENFF #eng #ENR #EUROP #Gen #JFOR #JLN #JOB #NAMER #NASIA #NEWS1 #NRG #POL #POTUS #RSBI:WORKERRIGHTS #Ru #Russia #SECUR #TOPCMB #TOPNWS #TRN #UA #US #UTIL #wash #ロシア

wacoca.com/news/2483555/ 台湾、米アラスカ州LNG購入で基本合意 エネ安保確保と総統 | ロイター #AMERS #Asia #ASXPAC #CDTY #CMPNY #CN #com. #Cru #CWP #DEST:NOJPTPM #DEST:NOJPWDM #DEST:NOJPZTM #dip #EASIA #EMRG #ENER #ENFF #eng #ENR #EXPRO #GASU #Gen #JFOR #JLN #LNG #MTPIX #NAMER #NGL #NGS #NRG #OILG #OILLND #PETREF #POL #POTUS #PRIVT #PROD #PUBL #PXP #REFI #REPI:EXPLORATIONPRODUCTION #REPI:GAS #REPI:LNG #REPI:PETROCHEMICALS #REPI:REFINING #SECUR #Taiwan #TOPCMB #TOPNWS #TRN #TW #US #UTIL #wash #台湾

米、ベンチャー・グローバルのLNG輸出認可 日系企業とも契約 | ロイター yayafa.com/2238898/ #AMERS #BACT #BIZ #BLR #business #CDTY #CMPNY #cơm #CORGOV #CPROD #DEST:NOJPTPM #DEST:NOJPWDM #DEST:NOJPZTM #ECI #eco #ECON #ENER #ENFF #Eng #ENR #ENV #ESG #ESGENV #EXPRO #GASLND #GASU #Gen #JFOR #JLN #LNG #man #MCE #MNGISS #MTPIX #NAMER #NGS #NRG #OILG #POL #POTUS #PRIVT #PUBL #PXP #REPI:EXPLORATIONPRODUCTION #REPI:GAS #REPI:LNG #RSBI:CLIMATECHANGE #TOPCMB #TOPNWS #TRN #us #UTIL #wash #XPAND #ビジネス

wacoca.com/news/2459172/ トランプ米政権、大気・水質保護のための規制緩和へ | ロイター #AMERS #AWLQ #Business #BusinessNews #CLC #CLJ #CLR #CO2 #coa #COAPWR #com. #DEST:NOJPBSM #DEST:NOJPTPM #DEST:NOJPZTM #ENR #ENV #GASPWR #Gen #GHGS #H2O #JFOR #JLN #JUDIC #MTPIX #NAMER #NEWS1 #NGS #NRG #POL #POTUS #PROD #PWR #PWRGEN #REGS #REPI:COAL #REPI:GAS #REPI:GRIDINFRASTRUCTURE #RSBI:CLIMATECHANGE #RSBI:SUSTAINABLEMARKETS #RSBI:WATERMANAGEMENT #TOPCMB #TOPNWS #TRN #US #UTIL #wash #WATR #WRM #ビジネス

wacoca.com/news/?p=2261272 米石油業界団体、バイデン政権の気候政策廃止をトランプ氏に要望 | ロイター #AMERS #AWLQ #CLC #CLR #CMPNY #CO2 #com. #DRIL #DRIL1 #ENER #ENFF #eng #ENQSVC #ENR #ENV #Gen #GHGS #GOVACT #JFOR #JLN #LNG #NAMER #NGS #NRG #NRGREG #OILG #OILI #OILI08 #PACKAGE:JPTEMP #POL #POTUS #PUBL #PXP #REGS #REPI:EXPLORATIONPRODUCTION #REPI:GAS #REPI:GOVERNANCE #REPI:LNG #RSBI:CLIMATECHANGE #RSBI:REGULATORYOVERSIGHT #RSBI:SUSTAINABLEMARKETS #TOPCMB #TOPNWS #TRD #TRN #US #UTIL #wash #WorldNews

Continued thread

#util-#linux just merged support for the new #mount-#api.

In addition to direct support for #idmapped #mounts via -o X-mount.idmap= it brings a lot of other nice features.

The highlight for me is support for the mount_setattr() system call which I added in 2019 or 2020 (not sure right now).

This means the kernel can now atomically clear and set all mount attributes recursively. Clearing and setting mount attributes is also idempotent with mount_setattr().

Continued thread

Many hours of random fighting, thinking that there's a bug in blkid?

There's nothing like that on the issue tracker, maybe I should ask on #util-linux IRC channel? Well ok, there was one pull request about detecting ISOs better, but it was about not giving label to a partition if the whole-disk already had that label... not relevant I guess.

Maybe something accidentally uses busybox's builtin blkid instead of the util-linux one?
Or maybe if I add a random `udevadm trigger` it'll fix itself (it does 50% of the time).

Wait a sec, that blkid in the udev rule is an udev buitlin, not an external command.

Found the source code, started reading it. It was all cryptic calls to libblkid that I had no idea what were doing. And something about reading properties inherited from parent device.

Anyway, could it be that it's a bug in libblkid?
Also, what is this "test" argument passed to the builtin? Maybe there's a way to dry-run it?
Sure there is!

udevadm test-builtin blkid /sys/class/block/sda2
Ok, prints some properties, but nothing about label.
So libblkid does the right thing.

Waait... udev properties are inherited from parent devices!
So /dev/sda2 inherits label from /dev/sda because it doesn't have its own label!

So if I add a label - any label - to my vfat image, eg. by adding "-n EFI" to mkfs.vfat's options...