bcachefs icon indicating copy to clipboard operation
bcachefs copied to clipboard

bcachefs, max lenght file name, max partition size, max file size aso.

Open Nihon-Ryori opened this issue 1 year ago • 1 comments

The follow data of open source bcachefs file system ...

Which characters are not allowed when naming directories and files, p.e "/" or "\ / : * ? " < > |" ?

max lenght file name: 255 caracter (255 Bytes) ? max partition size: 16 EiB ? max file size: 16 EiB ? max count of files: supports journaling for metadata ? supports journaling for data ?

... are unknown and still not public on follow and other sources:

  • https://bcachefs.org/
  • https://github.com/koverstreet/bcachefs
  • https://bcachefs.org/bcachefs-principles-of-operation.pdf

Nihon-Ryori avatar Aug 24 '24 12:08 Nihon-Ryori

max lenght file name

512 chars. Only Reiserfs or HAMMER can beat this.

#!/bin/bash
set -e
start=500
end=520
[[ "${start}" -lt "6" ]] && exit 1
[[ "${start}" -gt "${end}" ]] && exit 2
for ((i=start; i<=end; i++)); do
	touch "$(printf "%05d" ${i})$(head -c $((${i}-5)) /dev/zero | tr '\0' 'a')"
done

BlueMax avatar Aug 30 '24 19:08 BlueMax