News for hackers. Stuff that matters.
Re:Google Drive does a surprise rollout of file limits, lock... by prepend on Saturday April 01, 2023 @09:01AM (#35399992)
I don’t think it’s reasonable. I think it’s poor engineering.

Imagine if a hard drive had a limit on the number of files, not just the size. Would that be reasonable.

Or imagine if someone designed a storage protocol and submitted it to IETF with such a limitation saying “it doesn’t affect the vast majority of users so we set this arbitrary limit to make our lives easier.” It would not make it through review.

Re:Google Drive does a surprise rollout of file limits, lock... by viraptor on Saturday April 01, 2023 @09:17AM (#35400078)
https://en.wikipedia.org/wiki/Comparison_of_file_systems almost every filesystem has a limit. Some document it, some not. Some limit it per directory rather than globally. There are also path limits which are effectively a file number limits as well. But the limit itself is very normal and would make it through reviews without issues.
Re:Google Drive does a surprise rollout of file limits, lock... by Kwpolska on Saturday April 01, 2023 @09:32AM (#35400183)
NTFS and ext4 have a 2^32 limit according to this table. The Reddit poster mentioned in the article [0] has 2 TB worth of space. I’m not sure if that’s decimal or binary TB, but if we assume binary, you get an average of 512 bytes per file, which is pretty reasonable (and on a real drive, you might be limited by sector size).

But even if you had a 20 TB hard drive, and you wanted a lot of files smaller than 5120 bytes, you can just create multiple partitions. Maybe a little inconvenient, but you can still use your drive to the fullest. Not so much with Google’s 5 million limit (for a 2 TB Google Drive, the minimum average file size is around 430 KB [2])

[0] https://www.reddit.com/r/google/comments/123fjx8/google_has_...

[1] https://www.wolframalpha.com/input?i=%282%2F2%5E32%29+TiB+in...

[2] https://www.wolframalpha.com/input?i=%282%2F5000000%29+TiB+i...

Re:Google Drive does a surprise rollout of file limits, lock... by yjftsjthsd-h on Saturday April 01, 2023 @02:11PM (#35402533)
Sure, everything has some limit. But the lowest limit I see on that page is 2^32, which is just a touch higher than 5 million. (/s) And far more importantly, none of those filesystems just decided one day to reduce the limit, which is kind of a big deal. (Although funny, in a horrible way; imagine booting up your machine one day and it tells you that your home filesystem needs to drop a few million files before it can mount. Can you imagine?)
Re:Google Drive does a surprise rollout of file limits, lock... by viraptor on Saturday April 01, 2023 @06:33PM (#35404828)
> none of those filesystems just decided one day to reduce the limit

Yes and no. This works differently from one filesystem to another, but search for "running out of inodes" to find many ways this can happen in reality, way below the technical limit of the filesystem itself. You can end up in situations where you can't create a new file and need to remove more than one to solve the situation. (Or even where removing many files doesn't seem to make a difference)

Re:Google Drive does a surprise rollout of file limits, lock... by Dylan16807 on Saturday April 01, 2023 @06:52PM (#35404987)
The thing about running out of inodes is that the format command scales them with the size of the drive, and the default is 1 inode per 16KB. So for a standard google account at 2TB or maybe 5TB you'd have 125 million or 312 million inodes.

They've basically gone and set it up like "largefile" mode, 1 inode per 1MB, forced upon all users. That's a bad default and an even worse mandate.

Re:Google Drive does a surprise rollout of file limits, lock... by Kye on Saturday April 01, 2023 @09:07AM (#35400019)
File systems do have a limit on number of files, though as far as I know they're all quite a bit higher than anything in the millions.
Re:Google Drive does a surprise rollout of file limits, lock... by Wowfunhappy on Saturday April 01, 2023 @09:14AM (#35400056)
Of course, with a physical disk there are also things you can do to get around those limitations, like switch to a different filesystem or use multiple filesystems on one disk.

Using the cloud leaves you exposed to the whims of the cloud provider. They select and switch technologies based on their needs instead of yours, and can arbitrarily change the restrictions.

Re:Google Drive does a surprise rollout of file limits, lock... by Kye on Saturday April 01, 2023 @09:21AM (#35400104)
If you manage to hit five billion files (which seems to be the standard limit), you might be in the market for object storage rather than new frontiers in file systems.
Re:Google Drive does a surprise rollout of file limits, lock... by yjftsjthsd-h on Saturday April 01, 2023 @02:18PM (#35402585)
> five billion files (which seems to be the standard limit),

Article says 5 million? Still a big number, but smaller than 5 billion.

Re:Google Drive does a surprise rollout of file limits, lock... by Kye on Saturday April 01, 2023 @02:23PM (#35402641)
We're talking about file systems.
Re:Google Drive does a surprise rollout of file limits, lock... by yjftsjthsd-h on Saturday April 01, 2023 @02:35PM (#35402781)
Then where are we getting 5 billion? The most common filesystem limits listed seem to be 2^32, which is a touch over 4 billion, and 2^64, which is Big.

(i.e. I can see now what I think you meant, but "5 billion" is a much closer match to "5 million" than 2^32)

Re:Google Drive does a surprise rollout of file limits, lock... by Kye on Saturday April 01, 2023 @02:44PM (#35402861)
My brain doesn't do numbers so good, so 4,294,967,295 became 4,924,967,295 and I rounded up instead of down.
Re:Google Drive does a surprise rollout of file limits, lock... by yjftsjthsd-h on Saturday April 01, 2023 @03:03PM (#35403027)
Ah, that makes sense. Completely understandable:)
Re:Google Drive does a surprise rollout of file limits, lock... by amf12 on Saturday April 01, 2023 @02:30PM (#35402719)
> Of course, with a physical disk there are also things you can do to get around those limitations, like switch to a different filesystem or use multiple filesystems on one disk.

So, use another Google account? If someone's workflow depends on one Google account, sounds like they need to understand the concept of sharding.

Re:Google Drive does a surprise rollout of file limits, lock... by prepend on Saturday April 01, 2023 @11:54AM (#35401257)
Of course they have limits, but the limits should be based on the design. And cloud should have a phenomenally high level.
Re:Google Drive does a surprise rollout of file limits, lock... by Thaxll on Saturday April 01, 2023 @09:24AM (#35400132)
It's poor engineering to not understand that everything has limits.
Re:Google Drive does a surprise rollout of file limits, lock... by prepend on Saturday April 01, 2023 @11:54AM (#35401242)
Everything has limits. The limits should be based on hardware limitations, not arbitrary limits. The limits should increase over time.
Re:Google Drive does a surprise rollout of file limits, lock... by mindslight on Saturday April 01, 2023 @10:03AM (#35400399)
Said like someone who has never run out of inodes! There's a reason `df -i` exists.
Re:Google Drive does a surprise rollout of file limits, lock... by IggleSniggle on Saturday April 01, 2023 @10:04AM (#35400404)
Without a limit, you could design a storage system using empty files on google drive with limitless storage potential.
Re:Google Drive does a surprise rollout of file limits, lock... by jjnoakes on Saturday April 01, 2023 @10:45AM (#35400686)
Why couldn't Google just count the file name length and perhaps a small constant metadata size against your quota?
Re:Google Drive does a surprise rollout of file limits, lock... by acdha on Saturday April 01, 2023 @11:48AM (#35401188)
That is a limit. It’s a different one but it tacitly accepts that some check is needed.
Re:Google Drive does a surprise rollout of file limits, lock... by aflag on Saturday April 01, 2023 @12:28PM (#35401566)
They already had a total size limit. The complaint is that they introduced a new one without really telling anyone.
Re:Google Drive does a surprise rollout of file limits, lock... by Kwpolska on Saturday April 01, 2023 @03:09PM (#35403094)
Not a limit as small as Google set, and not a limit added overnight without any previous announcement or grace period. If you want to limit storing data in names of blank files, you could say “blank files, files smaller than 1024 bytes, and folders are counted as 1024 bytes for quota purposes”. A minimum billable size seems fair to me, and there is prior art (e.g. AWS S3 has minimum sizes for some storage classes).
Re:Google Drive does a surprise rollout of file limits, lock... by dwaite on Saturday April 01, 2023 @02:08PM (#35402493)
on real filesystems, directories are effectively files and take up space. I see no reason for them not to have zero byte files take from the storage limits due to metadata.
Re:Google Drive does a surprise rollout of file limits, lock... by dboreham on Saturday April 01, 2023 @10:16AM (#35400489)
> Imagine if a hard drive had a limit on the number of files

NPM developer?

<ducks>

Re:Google Drive does a surprise rollout of file limits, lock... by victortroz on Saturday April 01, 2023 @02:01PM (#35402424)
pnpm helped me a lot with this.