o fix magicNTFS defenition

o remove NTFS_SB_MAGIC because it is unusefull
o rename magicNTFS -> NTFS_SB_MAGIC
o make bootsect.c use NTFS_SB_MAGIC instead of hardcoded value
This commit is contained in:
yura 2006-12-11 03:02:23 +00:00
parent 43b61b82e7
commit 03fabce6eb
2 changed files with 3 additions and 4 deletions

View File

@ -27,9 +27,8 @@
#include "endians.h"
#include "support.h"
/* The NTFS oem_id */
#define magicNTFS const_cpu_to_le64(0x202020205346544e) /* "NTFS " */
#define NTFS_SB_MAGIC 0x5346544e /* 'NTFS' */
/* The NTFS oem_id "NTFS " */
#define NTFS_SB_MAGIC const_cpu_to_le64(0x202020205346544eULL)
/*
* Location of bootsector on partition:

View File

@ -83,7 +83,7 @@ BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR *b,
/* Check OEMidentifier is "NTFS " */
ntfs_log_debug("Checking OEMid... ");
if (b->oem_id != cpu_to_le64(0x202020205346544eULL)) /* "NTFS " */
if (b->oem_id != NTFS_SB_MAGIC) /* "NTFS " */
goto not_ntfs;
ntfs_log_debug("OK\n");