- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
FSCK THAT SHST!!!
Admin
for attempt in {1..3}; do post "frist" done
We always succeed. exit 0
Admin
Pragmatic :-O
Admin
Furth
Admin
i really hate ifs in bash shell 'if ... else ... fi'.
i find fi so dumb.
Admin
I worked with Fi for a couple of years; she's lovely. I do giggle when I get the occasional "unexpected fi"
Admin
This script leaves the device unmounted...
Admin
Admin
Met too often ;-)
try { [...] } catch (Exception ex) { #F### it. We always succeed. exit 0 return 0; }
Admin
I take it you've never seen a case statement in bash. There are few combinations of letter that sound more stupid than 'esac'.
Admin
Admin
Admin
The Daily What the Fsck
Admin
Am I missing something? Apart from that the article is wrong ("the script below is a wrapper to fsck.xfs" - no it isn't, it is a replacement) where is the wtf?
It's not a pretty solution (and, looking at the comments, the developer knows that), but if it works and there is no better alternative then that's not a wtf but a pragmatic solution that gets the job done.
At least until that "xfs meta data corruption bug" has been investigated more thoroughly and a fix provided for that.
Admin
When nobody was looking, Lex Luthor added a script to check XFS four times. That's 4 times. That's as many as two times two. And that's terrible.
Admin
It is a foolish consistency.
Admin
we all should use <if> ... </if> etc. Much more enterprisy.
Captcha: acsi - the small brother of ascii
Admin
Admin
If at first you don't succeed, try, try, try again.
Admin
What is see as problems:
This is not as bad as some things I have seen, but it does deserve representation here.
Admin
Admin
acsi is a european campsite organisation. http://www.acsi.eu.
Admin
Admin
I guess TRWTF is that the system-provided fsck.xfs doesn’t do anything and just returns success... But I remember trying to repair a somewhat large XFS volume with xfs_repair, and having xfs_repair run out of memory. So I guess that explains it...
I also think that fsck.xfs is needed in the first place because some GNU/Linux distros will fail to boot if some partition mounted at boot time needs a FS check but fsck.<FS> does not exist. Why this couldn’t be handled more gracefully is beyond me.
Admin
FYI this is the OpenSuSE standard fsck.xfs... Doesn't really do anything :)
Admin
*whoever
Admin
If at first you don’t succeed, try, try again. Then quit. There’s no point in being a damn fool about it. - W. C. FIELDS
Admin
Looks like two different applications of hideIt() to me.
From my implementation of that infamous flowchart:
Admin
Yeah... good luck finding those on your keyboard.
Admin
This reminds me of the time I tried to check my ReiserFS volume. I thought that was what fstab was for. Boy, was my car seat^H^H^H^H^H^H^H^H face red!
Admin
The fools! If only they'd built it with 6001 hulls!
Admin
Additionally, even when configured with an XFS root filesystem, the initrd does not contain the required xfs_check and xfs_repair binaries. I discovered this when an XFS root became corrupt and I couldn't fix it with the maintenance shell. This server being ancient, it of course requried a drive to the datacenter, 90 minutes away.
After that, I added scripts to mkinitrd that added xfs_repair binary.
Admin
TRWTF is the use of "whomever" in the third graf. This pronoun is the subject of the independent clause "whoever wrote the script."
Admin
learned about BASH_REMATCH today ...
Admin
BTW, when will the front page get rid of that ugly Halloween coloration? Or is it just my cache?
Admin
Just your cache. And in regards to the skydiving. At least if your sky dive plane hits another sky dive plane, then everyone who jumps makes it out alive. True story. One pilot jumped and the other landed his plane with the first plane halfway inside it.
sagaciter
Admin
Just your cache. Ctrl + F5.
Admin
Ah yes. The comment-block confessional, where we sometimes confess our sins, and pray for the forgiveness of whomever must maintain our code. ;-)
Admin
Thanks - tho' at least w/ Chrome, had to clear thedailywtf site cookies before dumping the cache to succeed.
Admin
The Halloween decoration is caused by an image and some CSS embedded in the last paragraph of the Halloween story. It will not show up on the front page if you turn off the showing of full article text on the front page. As newer articles keep getting added, the decoration will move down the archive pages along with the article it is embedded in.
Admin
... and you clearing the cookies will have toggled the showing of full article text on the front page.
Admin
Realizing the importance of the case, my men are rounding up twice the usual number of suspects.
Admin
F12, right-click refresh button, Empty Cache and Hard Reload.
Admin
why is the homepage STILL a hideous Halloween skin? It's been a week since Halloween...
Admin
Odd, I have that option enabled, but it never had seemed to make any difference.
Admin
Admin
I'm using IE (work), and it never even showed the color change on the first page. Just the article itself.
Admin
Admin
Its empty because it shouldn't ever be needed.
I once had an xfs go bad on an SGI Octave. Never once had a problem with xfs under Linux.
Admin
Did anybody notice the WTF in the dmesg command? In the command
dmesg produces output which gets sent to /dev/null. If were used instead, it would not produce any output. Why produce output to trash it instead of just not producing it to start with?