Hello, I looked at udf_statfs() implementation and I see there two things which are probably incorrect: First one: buf->f_blocks = sbi->s_partmaps[sbi->s_partition].s_partition_len; If sbi->s_partition points to Metadata partition then reported number of blocks seems to be incorrect. Similar like in udf_count_free(). Second one: buf->f_files = (lvidiu != NULL ? (le32_to_cpu(lvidiu->numFiles) + le32_to_cpu(lvidiu->numDirs)) : 0) + buf->f_bfree; What f_files entry should report? Because result of sum of free blocks and number of files+directories does not make sense for me. -- Pali Rohár pali.rohar@xxxxxxxxx
Attachment:
signature.asc
Description: PGP signature