Attribute -u

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Ebse
Posts: 3
Joined: Fri Jul 02, 2021 11:31 am

Attribute -u

Post by Ebse »

Hello everybody

I am wondering whether Everything is supporting the attribute 'u' (unpinned).

On the corresponding manual page https://www.voidtools.com/support/everything/searching/ the attribute 'u' is not listed in the section "Attribute Constants". Does this mean "attrib:u" is not supported?

I am asking this question because Microsoft OneDrive is using the 'o' and 'u' attributes and I want to determine which files are currently stored locally.

Cheers, Ebse
void
Developer
Posts: 15663
Joined: Fri Oct 16, 2009 11:31 pm

Re: Attribute -u

Post by void »

The pinned and unpinned attributes are currently not supported with Everything 1.4.

Thanks for bringing this to my attention Ebse,

I've put these attributes on my TODO list to support.

Searching these attributes can be done with the Everything 1.5 alpha with attrib:0x80000 (pinned) and attrib:0x00100000 (unpinned)
Ebse
Posts: 3
Joined: Fri Jul 02, 2021 11:31 am

Re: Attribute -u

Post by Ebse »

Thanks a lot for the quick and excellent support.

The alpha version works like a charm :D

A donation was mandatory ;)
void
Developer
Posts: 15663
Joined: Fri Oct 16, 2009 11:31 pm

Re: Attribute -u

Post by void »

Thank you for your support.
Ebse
Posts: 3
Joined: Fri Jul 02, 2021 11:31 am

Re: Attribute -u

Post by Ebse »

@void

I performed some more tests with the 1.5a version today.
As far as I understand the attribute -o (0x1000 Offline) has to be considered as well. The flags O, P, U are used by OneDrive, depending on the status of the file.
Apart from adding the filters, I think you also have to adjust the 'Attributes' column and eventually 'Offline Available' and 'Offline Status'.

Looking for to test the next available release :geek:
void
Developer
Posts: 15663
Joined: Fri Oct 16, 2009 11:31 pm

Re: Attribute -u

Post by void »

Thank you for the feedback Ebse,

Everything 1.5.0.1267a adds support for U, P and M attributes.
  • U = Unpinned (OneDrive "online-only files")
  • P = Pinned (OneDrive "always available files")
  • M = Recall on Data Access
Sparse files will no longer have P as the attribute letter.
To search for sparse files:
attrib:0x200

attrib: search function

'Offline Available' and 'Offline Status' columns can be added from right clicking the result list column header -> Add Columns -> Offline Available and Offline Status.
rgbigel
Posts: 39
Joined: Sun Apr 17, 2011 4:00 pm

no previews in OneDrive\Pictures

Post by rgbigel »

Noticed a probable error causing no previews in OneDrive\Pictures, which never show in Everything, but do show in Explorer.

It may be a result of a "Quirk" of Onedrive: it appears that the attributes assigned to files which are open.

This is the setup in Everything:
- including MD5 in Everything
- preview column selected
- showing attribute column (which does not change the error, just helps to see what is happening)

I open Everything using two folders, one in OneDrive, the other not, both containing the same .jpg files
I see all attributes originally are "AP" after initial ext:jpg selection, all pairs of files have identical MD5, as expected
[I know that "ALOM" is shown for offline files, but there are none here.]
I then go into the results list, and mouse down to get the preview, the preview column only shows the placeholder

immediately after accessing a file in OneDrive, the content of its attribute column changes to "ALP" in Everything

[OneDrive folder always shows "ALP" in the windows explorer attributes column, preview works. So I suspect the Explorer uses the Symbolic Link internally. The attrib command in CMD does not change to "ALP", but drops the "A" showing always "P" only.]

When I refresh the results list via F5, all attributes are back to "AP" in Everything, preview still does not work ,
even for the selected file, which still displays "AP" now, but preview is still placeholder.

[Side observation: since Windows 11, accessing the preview with Explorer, takes visibly longer for any file selected for the first time (once). Indications are that the preview image is accessed online, despite being permanently kept offline. They've got to be kidding!]

Edit: now including screen shots because I can not interpret messages in Debug Log.

Can not attacht logfile, reasons:
Attaching \AppData\Local\Temp\Everything Debug Log-1.5a.txt gives me error message "Invalid file extension: Everything Debug Log-1.5a.txt"
therefore I Include the contents in-line. I also tried to include the file without the "-1.5a", does not work either. I am now struggling with the limit on lines I can Post. Will post when I filtered out.

[Side: look at snapshots, why are there entries of the same file for "d:\..." and "D:\..." for the same file??]
----------------------------
Attachments
Screenshot (6).png
Screenshot (6).png (62.19 KiB) Viewed 12528 times
Screenshot (5).png
Screenshot (5).png (503.75 KiB) Viewed 12528 times
Last edited by rgbigel on Sat Oct 09, 2021 11:16 am, edited 4 times in total.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Attribute -u

Post by raccoon »

void wrote: Tue Jul 06, 2021 6:46 amSparse files will no longer have P as the attribute letter.
To search for sparse files: attrib:0x200
void: Thanks for the info, I was wondering where this went.
I use the Attributes column and !attrib:P to locate files that are not 'sparse' and need to be re-sparsified (special tool) due to mistakes in copying/moving (very large) sparse project files (that is, they consume 2 or 20 or 100 times more disk space than they otherwise need to). I will add the bookmark macro sparse: == attrib:0x200
void
Developer
Posts: 15663
Joined: Fri Oct 16, 2009 11:31 pm

Re: Attribute -u

Post by void »

Unforunately, I added P as sparse long before Microsoft used it for pinned.

I will need to stick with Microsoft's lettering.

Preview only works outside of OneDrive
Debug output might have some useful information:
  • Start OneDrive and get OneDrive and Everything in a state where Everything fails to show previews.
  • In Everything 1.5, from the Tools menu, under the Debug submenu, click Start Debug Logging.
  • Select a different file in the result list to force Everything to load a new preview.
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging.
  • ---this will open your Everything Debug Log.txt
  • What is shown in your Everything Debug Log.txt?

all is back to "AP" in Everything
The file might be an opened and the USN entry hasn't been closed (hence, Everything has not updated).
I will investigate.
rgbigel
Posts: 39
Joined: Sun Apr 17, 2011 4:00 pm

no previews in onedrive/Pictures

Post by rgbigel »

Here is the log file I promised:
--------------------------------------
2021-10-09 13:18:41.059: Everything
2021-10-09 13:18:41.060: Version 1.5.0.1277a (x64)
2021-10-09 13:18:41.060: Windows NT 10.0
2021-10-09 13:18:41.060: Processors 12
2021-10-09 13:18:41.060: IsAdmin 1
2021-10-09 13:18:41.060: AppData 0
2021-10-09 13:18:41.061: Service 1

2021-10-09 13:18:41.697: got preview handler from ext C:\Users\rgbigel\AppData\Local\Temp\Everything Debug Log-1.5a.txt 1
2021-10-09 13:18:41.700: ui->listview_was_focus_in_view 1
2021-10-09 13:18:41.701: got preview handler 0.004510 seconds
2021-10-09 13:18:41.702: got iws
2021-10-09 13:18:41.708: _db_fileinfo_fd_request_thread_finished_proc
2021-10-09 13:18:41.716: _db_journal_notification_event_proc
2021-10-09 13:18:41.716: got stream
2021-10-09 13:18:41.717: iws initialized
2021-10-09 13:18:41.720: setup 0.000897 seconds
2021-10-09 13:18:41.731: DoPreview ok
2021-10-09 13:18:41.732: DoPreview ok: 1, 0.011612 seconds
2021-10-09 13:18:41.732: setsite
2021-10-09 13:18:41.747: loaded preview in 0.045772 seconds

2021-10-09 13:18:51.667: got preview handler from ext B:\Amazon Drive\Amazon Photos\20120702_115212Photo-3548710A-
2021-10-09 13:18:51.685: loaded preview in 0.018216 seconds

2021-10-09 13:18:58.322: got preview handler from ext d:\OneDrive\Pictures\20120702_115212Photo-3548710A-5430-4382-98E0-34D2A84AA424-20120706-190943-1024_2012-05-00.jpg 0
2021-10-09 13:18:58.451: _db_monitor_process_update_event_available_event_proc
2021-10-09 13:18:58.463: BIND OK
2021-10-09 13:18:58.463: IExtractImage OK
2021-10-09 13:18:58.463: IExtractImage::GetLocation OK
2021-10-09 13:18:58.463: IExtractImage::GetLocation SIZE OK
2021-10-09 13:18:58.474: loaded preview in 0.152057 seconds

2021-10-09 13:19:01.338: got preview handler from ext D:\OneDrive\Pictures\20120702_115212Photo-3548710A-5430-4382-98E0-34D2A84AA424-20120706-190943-1024_2012-05-00.jpg 0
2021-10-09 13:19:01.344: BIND OK
2021-10-09 13:19:01.344: IExtractImage OK
2021-10-09 13:19:01.344: IExtractImage::GetLocation OK
2021-10-09 13:19:01.344: IExtractImage::GetLocation SIZE OK
2021-10-09 13:19:01.353: loaded preview in 0.015648 seconds
Last edited by void on Sun Oct 10, 2021 10:30 pm, edited 1 time in total.
Reason: trimmed log
void
Developer
Posts: 15663
Joined: Fri Oct 16, 2009 11:31 pm

Re: Attribute -u

Post by void »

Thank you for the debug log rgbigel,

The logs show the txt preview loads OK.
The logs show the first preview for a jpg file fail. (no reason given)
The logs show the second preview for a jpg file succeed. (loading was slow)
The logs show the third preview for a jpg file succeed.


Everything is running as an admin, could you please make sure Everything is running as a standard user:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check Store settings and data in %APPDATA%\Everything
  • Uncheck Run as administrator.
  • Check Everything Service. (Please make sure this is tick-checked and not square-checked)
  • Click OK.
  • Exit Everything (right click the Everything tray icon and click Exit).
  • Restart Everything.

I will add more debug information for the next alpha update and post an update here when it is ready.
My guess is Everything is unable to create an ITEMIDLIST from the filename.
void
Developer
Posts: 15663
Joined: Fri Oct 16, 2009 11:31 pm

Re: Attribute -u

Post by void »

Everything 1.5.0.1280a adds more debug information when showing a preview.

Could you please try this version and send the same debug output as before?
  • Start OneDrive and get OneDrive and Everything in a state where Everything fails to show previews.
  • In Everything 1.5.0.1280a, from the Tools menu, under the Debug submenu, click Start Debug Logging.
  • Select a different file in the result list to force Everything to load a new preview.
  • From the Tools menu, under the Debug submenu, click Stop Debug Logging.
  • ---this will open your Everything Debug Log.txt
  • What is shown in your Everything Debug Log.txt?
Post Reply