ntfs-3g 드라이버가 변경 로그를 구현하는지 아는 사람이 있습니까? 공식 홈페이지를 확인해 봤지만 관련 정보를 찾을 수 없었습니다. 미 해군.
답변1
문서를 많이 찾지 못했습니다.미 해군+ ntfs-3g, 하지만 다음에서 ntfs-3g 소스 코드를 확인하세요.include/ntfs-3g/layout.h, 다음을 찾았습니다.
/**
* struct NTFS_RECORD -
*
* The Update Sequence Array (usa) is an array of the u16 values which belong
* to the end of each sector protected by the update sequence record in which
* this array is contained. Note that the first entry is the Update Sequence
* Number (usn), a cyclic counter of how many times the protected record has
* been written to disk. The values 0 and -1 (ie. 0xffff) are not used. All
* last u16's of each sector have to be equal to the usn (during reading) or
* are set to it (during writing). If they are not, an incomplete multi sector
* transfer has occurred when the data was written.
* The maximum size for the update sequence array is fixed to:
* maximum size = usa_ofs + (usa_count * 2) = 510 bytes
* The 510 bytes comes from the fact that the last u16 in the array has to
* (obviously) finish before the last u16 of the first 512-byte sector.
* This formula can be used as a consistency check in that usa_ofs +
* (usa_count * 2) has to be less than or equal to 510.
*/
typedef struct {
NTFS_RECORD_TYPES magic;/* A four-byte magic identifying the
record type and/or status. */
u16 usa_ofs; /* Offset to the Update Sequence Array (usa)
from the start of the ntfs record. */
u16 usa_count; /* Number of u16 sized entries in the usa
including the Update Sequence Number (usn),
thus the number of fixups is the usa_count
minus 1. */
} __attribute__((__packed__)) NTFS_RECORD;
(참조: STANDARD_INFORMATION 구조체의 usn 필드)
아무래도 미해군을 이용하고 있는 것 같은데, 적절한 입수 방법을 모르겠습니다. 먼저 NTFS_RECORD를 사용하는 방법을 이해한 다음 거기에서 API를 찾으려고 노력합니다.