Btrfs -максимальный размер xattr?

Это что-то близкое к тому, что вы ищете?

echo "sample-id,absolute-filepath,direction" > manifest
for f in *.fq; do
  dir="forward"
  g=$(echo $f | grep -Po "(?<=\.R)[0-9](?=\.fq)")
  if [ $g -eq 2 ]; then
    dir="reverse"
  fi
  echo ${f%%.*},$PWD/$f,$dir
done >> manifest
cat manifest

Предполагается, что есть только R1 и R2 и что вы выполняете из содержащего каталога

0
16.06.2020, 10:48
1 ответ

Из man xattrи ядро, и файловая система могут ограничивать максимальное число/размер xattr

grep XATTR /usr/include/linux/limits.h

#define XATTR_NAME_MAX   255    /* # chars in an extended attribute name */
#define XATTR_SIZE_MAX 65536    /* size of an extended attribute value (64k) */
#define XATTR_LIST_MAX 65536    /* size of extended attribute namelist (64k) */

Для бтрф

In the Btrfs, XFS, and Reiserfs filesystem implementations, there is no practical limit on the number of extended attributes associated with a file, and the algorithms used to store extended attribute information on disk are scalable

И

In the Btrfs filesystem implementation, the total bytes used for the name, value, and implementation overhead bytes is limited to the filesystem nodesize value (16 kB by default).

4
18.03.2021, 23:27

Теги

Похожие вопросы