#SQL vs. #clang
- SQL (44%, 215 votes)
- C (55%, 269 votes)
Writing a VTL Linux Kernel Module for fun [?]
Anyways, realized my SysFS approach was misguided, and migrating to ConfigFS for creating/destroying kernel objects like SCSI Hosts.
Man oh man is there a lot of boiler plate to get ConfigFS up and running, but I think that I've sticklebricked it together correctly at last.
You can create SCSI hosts by making dirs in /config/cvtl/hosts which have the id and enabled attributes (the full SCSI Host object to come soon). If you write a '1' to your host's enabled file it will register it with the SCSI Midlayer, which you can see near the end as it creates SysFS objects in /sys/class/scsi_host/hostX
So when you want to make a virtual tape library you can just make some directories, and echo the values you want to their underlying files and then enable the host with the targets and LUNs you want. Seems like a very friendly interface.
#linux #kernel #linuxkernel #nix #nixos #rust #c #clang #vtl #tapelibrary
I like to think of Arch Linux in the same way the C programming language gives you the freedom to royally screw things up if you don't know what you're doing, and NixOS in the same way that the Rust programming language provides safety to prevent you from easily making stupid mistakes.
#Meme #Linux #ArchLinux #NixOS #Nix #C #CLang #CLanguage #Freedom #Safety #CC_BY_SA_40 #FOSS #Gimp #MadeInGimp