Re:`three = 1` in the Linux sourcecode (2014)
by gadrev on Tuesday March 09, 2021 @12:39PM
(#26401252)
> Totvald's very own little FizzBuzz game hidden in ext4's file-system source code
What's that?
Re:`three = 1` in the Linux sourcecode (2014)
by warkdarrior on Tuesday March 09, 2021 @02:25PM
(#26402796)
Write a filesystem that saves all data blocks to disk, but:
- if the data block id is a multiple of 3, replace its contents with 0x03
- if the data block id is a multiple of 5, replace its contents with 0x05
- if the data block id is a multiple of both 3 and 5, replace its contents with 0x15
Powers of three, five, and seven sounds a little bit like Totvald's very own little FizzBuzz game hidden in ext4's file-system source code.