RE: [PATCH v2] exfat: handle unreconized benign secondary entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >
> >> +		if (exfat_get_entry_type(ep) & TYPE_BENIGN_SEC)
> >> +			exfat_free_benign_secondary_clusters(inode, ep);
> >> +
> >
> > Only vendor allocation entry(0xE1) have associated cluster
> > allocations, vendor extension entry(0xE0) do not have associated cluster
> allocations.
> This is to free associated cluster allocation of the unrecognized benign
> secondary entries, not only vendor alloc entry. Could you elaborate more if
> there is any issue ?

>From exFAT spec, there are 2 types benign secondary entries only, Vendor Extension entry and Vendor Allocation entry.

For different Vendor, Different Vendors are distinguished by different VendorGuid. 

For a better understanding, please refer to https://dokumen.pub/sd-specifications-part-2-file-system-specification-version-300.html. This is the specification that the SD Card Association defines Vendor Extension entries and Vendor Allocation entries for SD card. "Figure 5-3 : Continuous Information Management" is an example of an entry set containing a Vendor Extension entry and a Vendor Allocation entry. In the example, we can see vendor extension entry(0xE0) do not have associated cluster allocations.




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux