News for hackers. Stuff that matters.
Re:Backblaze has stopped backing up your data by sunnybeetroot on Tuesday April 14, 2026 @04:13PM (#47770856)
Even crazier is one drive has a limit on the total length of a file path, how is this even a thing that exists.
Re:Backblaze has stopped backing up your data by ahhhhnoooo on Tuesday April 14, 2026 @04:41PM (#47771217)
Unlimited strings are a problem. People will use it as storage.

No, I'm not joking. We used to allow arbitrary paths in a cloud API I owned. Within about a month someone had figured out that the cost to store a single byte file was effectively zero, and they could encode arbitrary files into the paths of those things. It wasn't too long before there was a library to do it on Github. We had to put limits on it because otherwise people would store their data in the path, not the file.

Re:Backblaze has stopped backing up your data by garaetjjte on Tuesday April 14, 2026 @05:07PM (#47771534)
Just include filename size in file size for billing purposes?
Re:Backblaze has stopped backing up your data by Barbing on Tuesday April 14, 2026 @07:26PM (#47772784)
In the fine print, only to be used against bad actors (w/guarantee that filenames under x chars would never be charged), or that too problematic? building good faith into policy + "hiding" info...

Reason - to not overcomplicate or give appearance of nickel-and-diming

Re:Backblaze has stopped backing up your data by fn-mote on Tuesday April 14, 2026 @08:02PM (#47773048)
No, just charge for the amount of storage they use on your server. Not the amount of data you think you’re storing. In non-special cases these will be the same number.
Re:Backblaze has stopped backing up your data by Barbing on Tuesday April 14, 2026 @08:35PM (#47773256)
Makes sense.

Would there be any engineering/management pushback on the customer side? "we have to write a tiny script", "this is non-standard" / "why are you the only ones who charge us for filenames?"

(have limited knowledge here)

Re:Backblaze has stopped backing up your data by ahhhhnoooo on Wednesday April 15, 2026 @12:39AM (#47774751)
Not sufficient, unfortunately. The strings for file paths are stored in wholly different infrastructure with wholly different optimizations. It probably lives in your database. You really don't want people just stuffing gigabytes into that, payment or no payment. Odds are you didn't plan your control plane around, "what if someone uses our strings as encoded data?"
Re:Backblaze has stopped backing up your data by OrangeMusic on Wednesday April 15, 2026 @02:26AM (#47775401)
They won't do it if it's not free
Re:Backblaze has stopped backing up your data by jamesfinlayson on Tuesday April 14, 2026 @08:27PM (#47773212)
I remember someone telling me that S3 used to be similarly abused - people were creating empty files and using S3 like a key-value store somehow, so AWS just jacked up the price of S3 head-object API call to push people back to DynamoDB or whatever.
Re:Backblaze has stopped backing up your data by sunnybeetroot on Tuesday April 14, 2026 @10:47PM (#47774097)
Wow alright I have learnt something thank you
Re:Backblaze has stopped backing up your data by dns_snek on Tuesday April 14, 2026 @06:12PM (#47772154)
What do you expect to happen when your cloud storage file path is 5000 characters long and your local filesystem only supports a maximum of 4096?
Re:Backblaze has stopped backing up your data by jamesfinlayson on Tuesday April 14, 2026 @08:36PM (#47773260)
Oh yeah... I remember Windows behaving weirdly when I tried to copy some files with long names into a deeper directory tree. And it was just weird behaviour - no useful error message.
Re:Backblaze has stopped backing up your data by fluoridation on Wednesday April 15, 2026 @01:22AM (#47774994)
Windows in particular supports at the API level paths tens of thousands of characters long, much longer than Linux. The problem is applications need to explicitly support such paths using the long path syntax, otherwise they're limited to 255 characters.
Re:Backblaze has stopped backing up your data by jamesfinlayson on Wednesday April 15, 2026 @07:09PM (#47786523)
Yeah I thought there was some way of doing it, but weirdly it was explorer.exe that was behaving in odd ways.
Re:Backblaze has stopped backing up your data by sunnybeetroot on Tuesday April 14, 2026 @10:46PM (#47774094)
Great point I stand corrected
Re:Backblaze has stopped backing up your data by zrm on Wednesday April 15, 2026 @03:00PM (#47783627)
You expect the files to still be accessible using relative paths. What do you expect to happen if your cloud storage file path is 50 characters long and is mounted in a folder which is 4050 characters long when PATH_MAX is 4096?

The sync application itself can handle this using openat(2) or similar and should probably be using that regardless to avoid races.

Re:Backblaze has stopped backing up your data by dns_snek on Thursday April 16, 2026 @06:16AM (#47791024)
Ah, I forgot that the maximum path length is usually limited by PATH_MAX, it's the path segment that's usually limited by the filesystem.

Point taken, although I still think it's better for cloud storage services to err on the side of compatibility, i.e. what's the lowest common denominator between Linux, macOS, Android, iOS from 10 years ago and Windows 7?

Re:Backblaze has stopped backing up your data by thebrain on Tuesday April 14, 2026 @06:45PM (#47772430)
Everything needs limits otherwise someone will figure out how to or accidentally break it.
Re:Backblaze has stopped backing up your data by sunnybeetroot on Tuesday April 14, 2026 @10:46PM (#47774092)
I stand corrected you’re right
Re:Backblaze has stopped backing up your data by pseudohadamard on Tuesday April 14, 2026 @10:48PM (#47774105)
Except the GNU stuff, which has as a design principle "no arbitrary limits". Meaning no limits at all, not "no sane limits":

  Avoid arbitrary limits on the length or number of any data structure, including filenames, lines, files, and symbols, by allocating all data structures dynamically.
I assume they're relying on the OOM Killer and quotas to prevent DoSes all over the place.