koverstreet / bcachefs

Other
700 stars 73 forks source link

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

Open Nihon-Ryori opened 3 months ago

Nihon-Ryori commented 3 months ago

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:

BlueMax commented 2 months ago

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