Сегодня сессия вопросов и ответов приходит к нам с любезностью подразделения SuperUser под управлением Stack Exchange, основанной на сообществах групп вопросов и ответов.
Вопрос
Читателю SuperUser Дэн Даскалеску интересно, почему весь поиск не основан на таблицах:
I’ve just discovered UltraSearch and was blown away by its file and folder search speed. It’s instantaneous. And doesn’t use any indexing service. It simply uses the NTFS Master File Table, which already stores all the filenames on the NTFS partition.
The question is, why isn’t this capability way more popular among file managers, and Windows Explorer Search (Win+F) to begin with?
Мы довольно уверены, что это реакция каждого пользователя компьютера на первое знакомство с тем, насколько быстрый поиск файлов на основе таблиц. Так почему же он не вошел во все?
Ответ
Докладчик SuperUser Мехрдад объясняет, почему низкоуровневый поиск никогда не попадал:
Because of Security!
That’s the real reason. (And the only real reason, in my opinion - it’s not that hard to make a reader for major file systems, although it’s by no means easy; making a writer is the real challenge.)
A program like this bypasses the entire (file) system’s security infrastructure, so only an administrator (or someone else who has “Manage Volume” privileges) can actually run it.
So obviously, it wouldn’t work in many scenarios - and I don’t think Microsoft (or any other big company) would ever consider making a product like this and then encouraging users to run as administrators, because of the security ramifications.
It would be theoretically possible to make a system which runs in the background and filters out secured data, but in practice it would be a lot of work to get correct and without security holes for production.
By the way I haven’t used UltraSearch, but I’d written a very similar program myself a few years ago which I open-sourced just last month! Check it out if you’re interested.:)
Есть что добавить к объяснению? Звучит в комментариях. Хотите узнать больше ответов от других пользователей Windows? Посмотрите здесь полную дискуссионную тему.