- 2 Posts
- 10 Comments
groctel@lemmy.worldOPto
Linux Questions@lemmy.zip•[SOLVED] Is there a tool to replicate a filesystem?English
1·13 days agoI actually replaced it! That’s why I’m positive that the issue is with the underlying filesystem driver. At the end of the day, it’s just running a basic Android KitKat with the Rockbox app on top. What player do you have? I’m considering getting a new one but have no clue what to get yet XD
groctel@lemmy.worldOPto
Linux Questions@lemmy.zip•[SOLVED] Is there a tool to replicate a filesystem?English
1·13 days agoIt’s an Innioasis Y1, which I’m in the process of changing for another player because the filesystem gets stuck buffering many songs (like 1/5 or even more).
We don’t have thrift stores here, so I get my recommendations from friends! Algorithmic exploration is one thing I do miss from YouTube. Even though it was still on the safe side it got me to find many great albums. Nowadays I browse wikipedia pages for genres I’m interested in, the /mu/ essential charts (fuck 4chan but wow what a great resource) and conversations with friends and fedi <3
groctel@lemmy.worldOPto
Linux Questions@lemmy.zip•[SOLVED] Is there a tool to replicate a filesystem?English
2·15 days agoI added some context here. The thing is that it still took ages because
stating every file is still very slow in my target player, so if I cache the status I can automatically create a script that just performs the required operations and run that.And yes, I do enjoy writing small utilities :p Thanks!
groctel@lemmy.worldOPto
Linux Questions@lemmy.zip•[SOLVED] Is there a tool to replicate a filesystem?English
2·15 days agoMy issue atm is that the destination filesystem is very slow, so just querying it every file’s timestamp add a very significant delay. Since I can treat my
~/Musicdirectory as the source of truth, I am considering writing a program that saves the status of the local filesystem at a point in time and then generates a diffing script when comparing it to a new status so I can use my fast, local computer to run the update checks.
groctel@lemmy.worldOPto
Linux Questions@lemmy.zip•[SOLVED] Is there a tool to replicate a filesystem?English
1·16 days agoI don’t save FLAC files, as I don’t have that much space (my library is 82GB big with 17629 tracks atm). What I do is that I have a script I wrote to convert all the files to Opus. I still have some old mp3s laying around that I convert or find better sources over time.
As for rsync command, it’s taken far longer than I would like to sync all the files. I’ve gotten an idea about caching the filesystem status for later uses to speed up the process, so I may end up writing a script after all!
groctel@lemmy.worldOPto
Linux Questions@lemmy.zip•[SOLVED] Is there a tool to replicate a filesystem?English
7·16 days agoStop googling and just read the rsync man page
Fair enough, sometimes you get tunnel vision with a problem.
For what I see the command doing, thanks for the progress flag, it seems to be doing what I need. Reading the manual, it also looks like it’s not copying files that have the same size and timestamp in the source and destination, which is also what I wanted, even though I didn’t make it explicit. I’ll have to take a look to making the command parallel, probably by running it on every subdirectory of
~Musicat once.Thank you for your help!
I have bad news for you
At my previous workplace we had a C macro that was something like
#define CheckWhatever(x__, true__, false__) \ whatever(x) ? (true__) : (false__)I don’t remember this shit, so I’m just paraphrasing cursed C. The question one would ask is… why? Well, because you also want to do
#define CheckWhatever2(x__, true__, false__) \ CheckWhatever((x__ ##1), (true__), (false__)) \ CheckWhatever((x__ ##2), (true__), (false__))And, of course
#define CheckWhatever3(x__, true__, false__) \ CheckWhatever2((x__ ##1), (true__), (false__)) \ CheckWhatever2((x__ ##2), (true__), (false__))Long story short, someone wanted to
CheckWhatever6inside another macro. While debugging code old enough to vote, my editor suggested expanding the macro, which expanded to ~1400 lines for a single ternary operator chain. Fun times!
Never forget your roots
(setq x (if (> y 5) :foo :bar))


Ahhh! I considered getting that player last year, but it doesn’t support the libopus codec, which is basically all my library. I need one that can run rockbox, as I want to be able to use it for my podcasts as well. It looks beautiful though, I would buy it just to contemplate it <3