Skip to content

Commit e68a947

Browse files
committed
Disk (SunOS): remove creation time detection support
ctim is `Timestamp of last file status change`, not creation time
1 parent 17556c7 commit e68a947

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/detection/disk/disk_sunos.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ static void detectStats(FFDisk* disk)
9999
ffStrbufSetS(&disk->name, fs.f_fstr);
100100

101101
disk->createTime = 0;
102-
struct stat deviceStat;
103-
if(stat(disk->mountpoint.chars, &deviceStat) == 0)
104-
disk->createTime = (uint64_t) deviceStat.st_ctim.tv_sec * 1000 + (uint64_t) deviceStat.st_ctim.tv_nsec / 1000000000;
105102
}
106103

107104
const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks)

0 commit comments

Comments
 (0)