diff --git a/bin/make-extdrive b/bin/make-extdrive index 7516c685..756e8f8b 100755 --- a/bin/make-extdrive +++ b/bin/make-extdrive @@ -25,20 +25,4 @@ unset device # safety measure to make sure we don't introduce some bug that cryptsetup -y -v --pbkdf-memory "$pbkdf_kb" luksFormat "$part" cryptsetup luksOpen --allow-discards "$part" "$cryptdev" -# This drive mostly stores photos. Most of these are about 12 megabytes or so. -# As such the cluster size should be big (probably 64k with -O bigalloc -C -# 65536). However, bigalloc is still unstable, so don't use it. -# -# % find ./ -ls | awk 'BEGIN{OFMT="%f"} {sum += $7; n++;} END {print sum/n;}' -# 12965453.184444 -# -# On the other hand there's no way we will use one inode per 16kb, so we can -# bump that up to 1MB per inode. -mkfs.ext4 -L "$label" -i 1048576 "$cryptdev_path" - -# We can tolerate data/metadata misordering. -tune2fs -o journal_data_writeback "$cryptdev_path" - -printf '%s\n' \ - 'NOTE: You may want to make sure that the users map properly, and do the following:' \ - 'sudo setfacl -b -R /srv/samba && sudo setfacl -Rdm g:docker:rx /srv/samba && sudo setfacl -Rm g:docker:rx /srv/samba' +mkfs.ext4 -L "$label" "$cryptdev_path"