Skip to content

Commit

Permalink
1. 0003053: Раскраска файлов с >1 хардлинком замедляет панели на сете…
Browse files Browse the repository at this point in the history
…вых дисках

   Добавлена проверка имени FS для тех ОС, которые не умеют FILE_SUPPORTS_HARD_LINKS.
  • Loading branch information
alabuzhev committed Oct 24, 2015
1 parent 4f34aa5 commit 6964106
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
7 changes: 6 additions & 1 deletion far/changelog
@@ -1,4 +1,9 @@
drkns 24.10.2015 02:29:09 +0200 - build 4444
drkns 24.10.2015 11:59:47 +0200 - build 4445

1. 0003053: Раскраска файлов с >1 хардлинком замедляет панели на сетевых дисках
Добавлена проверка имени FS для тех ОС, которые не умеют FILE_SUPPORTS_HARD_LINKS.

drkns 24.10.2015 02:29:09 +0200 - build 4444

1. 0002520: Неправильный текст системной ошибки

Expand Down
17 changes: 14 additions & 3 deletions far/filelist.cpp
Expand Up @@ -6610,7 +6610,8 @@ void FileList::ReadFileNames(int KeepSelection, int UpdateEvenIfPanelInvisible,
DWORD FileSystemFlags = 0;
string PathRoot;
GetPathRoot(m_CurDir, PathRoot);
os::GetVolumeInformation(PathRoot, nullptr, nullptr, nullptr, &FileSystemFlags, nullptr);
string FileSystemName;
os::GetVolumeInformation(PathRoot, nullptr, nullptr, nullptr, &FileSystemFlags, &FileSystemName);

m_ListData.clear();

Expand All @@ -6619,9 +6620,19 @@ void FileList::ReadFileNames(int KeepSelection, int UpdateEvenIfPanelInvisible,
bool ReadNumStreams = IsColumnDisplayed(NUMSTREAMS_COLUMN);
bool ReadStreamsSize = IsColumnDisplayed(STREAMSSIZE_COLUMN);

if (!(FileSystemFlags&FILE_SUPPORTS_HARD_LINKS) && IsWindows7OrGreater())
if (IsWindows7OrGreater())
{
ReadNumLinks = false;
if (!(FileSystemFlags & FILE_SUPPORTS_HARD_LINKS))
{
ReadNumLinks = false;
}
}
else
{
if (FileSystemName != L"NTFS")
{
ReadNumLinks = false;
}
}

if(!(FileSystemFlags&FILE_NAMED_STREAMS))
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
@@ -1 +1 @@
m4_define(BUILD,4444)m4_dnl
m4_define(BUILD,4445)m4_dnl

0 comments on commit 6964106

Please sign in to comment.