3 ms·
I heard about someone circumventing disk quota by encoding the data in the file names, having only empty files.
by nikeee 8y ago
I heard about someone circumventing disk quota by encoding the data in the file names, having only empty files.
- asadlionpk 8y agoNeat! Do filesystems not have a limit on maximum name length?
- thedirt0115 8y agoYeah, they do, usually around 2^8 to 2^15 characters total. Assuming < 256 chars is usually safe, but check the docs for your OS + filesystem combo.
- toast0 8y agoMost filesystems have a limit on the filename of one element, but many don't have a limit on the depth of directories or the total length of the full path to the file. Some operating systems do have a limit on the length of a fully qualified file name, but you may be able to avoid that by only using relative names.
- davchana 8y agoWindows routinely shows me error if I try to rename/delete/move a file, whose name is within the limit, but the complete path from root including all the folders make it above the limit.
- maw 8y agoCould be a different story, but I have this vague recollection of someone who, by taking advantage of sloppy wording, won a bet against someone else who said he couldn't compress random data. This was a long time ago, maybe as long as twenty years ago. I'd love to find it again, though.
- pianom4n 8y agoSounds like this one: https://news.ycombinator.com/item?id=9163782 https://news.ycombinator.com/item?id=9163782
- abhgh 8y agoDo you mean this - [1]? Yes, this was pretty cool! I esp liked how Mike, the person initiating the bet, initially was super-confident he'd win: It would be very easy to point out to him the impossibility of his task, but far more interesting to see how long he will struggle with the problem before realizing it for himself. [1] http://www.patrickcraig.co.uk/other/compression.php http://www.patrickcraig.co.uk/other/compression.php
- maw 8y agoYes, that's it. Thanks, and thanks too to pianom4n. And, yeah, Mike ought to have paid.