int ntfs_attr_can_be_resident (const ntfs_volume * vol, const ATTR_TYPE type);
Check whether the attribute of type on the ntfs volume vol is allowed to be resident. This information is derived from our ntfs knowledge and may not be completely accurate, especially when user defined attributes are present. Basically we allow everything to be resident except for index allocation and $EA attributes.
Return 0 if the attribute is allowed to be non-resident and -EPERM if not.
In the system file $MFT the attribute $Bitmap must be non-resident otherwise windows will not boot (blue screen of death)! We cannot check for this here as we do not know which inode's $Bitmap is being asked about so the caller needs to special case this.