Hi,
I plan to commit the below [with comments] to volume.[ch] for general
use and also convert ntfsfix.c to use this. However ntfsfix also
accepts any version 2.X. Does that really needed? I also plan to move
log journal reset and marking volume dirty to the library. Any
objection? Thanks,
Szaka
#define NTFS_V1_1(major, minor) ((major) == 1 && (minor) == 1)
#define NTFS_V1_2(major, minor) ((major) == 1 && (minor) == 2)
#define NTFS_V3_0(major, minor) ((major) == 3 && (minor) == 0)
#define NTFS_V3_1(major, minor) ((major) == 3 && (minor) == 1)
int ntfs_version_supported(u8 major, u8 minor)
{
if (NTFS_V1_1(major, minor) || NTFS_V1_2(major, minor))
return 0;
if (NTFS_V3_0(major, minor) || NTFS_V3_1(major, minor))
return 0;
errno = ENOTSUP;
return -1;
}
--
|