Jump to content


Photo

.del files?


  • Please log in to reply
72 replies to this topic

Re: .del files? #61 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 22 February 2018 - 18:48

As soon as the unlink action starts, the file is no more visible in the file system and you can even have a new file with exactly the same name from that point.


Actually, that's only the case AFTER unlink returns, not while it's running.

So IMHO there is no need to rename the file, just start the unlinking in a separate thread. I can see a source of race conditions there, though, need to be careful.


Starting a thread for each delete call is simply a bad idea, I guess you'll agree. So what remains is to have a single thread do all the delete calls on your behalf, but that leads to files remaining visible for several seconds if you remove a dozen or so. The solution to that is to rename the file first, and then add it to the thread's queue, and this is exactly what it does now.

What we SHOULD do is make the "slow delete" function no longer the default. Maybe remove it alltogether, as even the old boxes will already have evolved to ext4.

Note that normal users never see this, the GUI implements "delete" as "move to trash". It's the trashcan purging that will actually delete them.
Real musicians never die - they just decompose

Re: .del files? #62 WanWizard

  • PLi® Core member
  • 68,558 posts

+1,737
Excellent

Posted 22 February 2018 - 18:49

Can't it be made automagical? i.e. check if it's ext2/ext3, and if not, skip the slow delete function?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: .del files? #63 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 22 February 2018 - 18:54

So what remains is to have a single thread do all the delete calls on your behalf, but that leads to files remaining visible for several seconds if you remove a dozen or so.

And that is a problem? Otherwise first rename it to something starting with a dot or even move it to an invisible directory ("trashcan" comes to mind...)
 

The solution to that is to rename the file first, and then add it to the thread's queue, and this is exactly what it does now.

Exactly like that ;)
 

What we SHOULD do is make the "slow delete" function no longer the default. Maybe remove it alltogether, as even the old boxes will already have evolved to ext4. Note that normal users never see this, the GUI implements "delete" as "move to trash". It's the trashcan purging that will actually delete them.

No we SHOULD NOT do that. It's a workaround that many of us don't need nor need (think of all NAS users...)


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: .del files? #64 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 22 February 2018 - 18:55

Can't it be made automagical? i.e. check if it's ext2/ext3, and if not, skip the slow delete function?

Hmmm, sounds like if(model) then { workaround }, I'd favour another way of detection whether it's necessary, if possible, of course.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: .del files? #65 WanWizard

  • PLi® Core member
  • 68,558 posts

+1,737
Excellent

Posted 22 February 2018 - 18:58

I don't have any preference. ;)

 

I think there are only two requirements:

- file should no longer be visible after it has been deleted in the GUI

- delete process should not inhibit the I/O to the storage device (whether local or remote)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: .del files? #66 anudanan

  • Senior Member
  • 1,185 posts

+16
Neutral

Posted 22 February 2018 - 19:59

Your are right, EXT3 is a problem. Unlink works fine on EXT2 and EXT4 wihtout interrupting recordings, In the past I used an et9200 for recording with EXT2 instead of EXT3

 

My EMC normally also  moves the deleted files first into a trashcan for reverting user mistakes

 

But if I delete the files per hand from the trashcan than it works as I have written in my last posts.


Edited by anudanan, 22 February 2018 - 20:01.

Receiver:2 x Uno4k SE (PLI 7.3 rel), 1 x ET9200 (PLI 4.0), NAS: 2 x QNAP 410, TV: LG 65C8llla, LG 47LB570V, LG 42LM615S, Sound: Yamaha RX-v663, Teufel System 5 THX


Re: .del files? #67 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 24 February 2018 - 12:18

You might want to try these alternatives on ext3:

 

- turning off journalling altogether (making it de facto ext2)

- use journalling for metadata only not data (although this is default and probably won't help here)

- don't use synchronous journalling, that will propbably help (mount the partition using data=writeback), this will probably help

 

IMHO this is a better approach then working around it.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: .del files? #68 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 24 February 2018 - 15:41

What we SHOULD do is make the "slow delete" function no longer the default. Maybe remove it alltogether, as even the old boxes will already have evolved to ext4. Note that normal users never see this, the GUI implements "delete" as "move to trash". It's the trashcan purging that will actually delete them.

No we SHOULD NOT do that. It's a workaround that many of us don't need nor need (think of all NAS users...)


I don't understand what you're saying here, you say "no" in the first part and give a rationale for a "yes" in the second part.

(I actually have a commit ready to make just calling "unlink" the default for all devices. The current default is to slowly truncate files on the local disk.)
Real musicians never die - they just decompose

Re: .del files? #69 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 24 February 2018 - 17:11

Simpler said (maybe that helps), for all of us that use storage over network, we're not affected by some "slow delete experience" and so we also don't want the workaround for it. So at least make such a workaround configurable. For me unlink() suits just fine.


Edited by Erik Slagter, 24 February 2018 - 17:11.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: .del files? #70 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 25 February 2018 - 09:18

Simpler said (maybe that helps), for all of us that use storage over network, we're not affected by some "slow delete experience" and so we also don't want the workaround for it. So at least make such a workaround configurable. For me unlink() suits just fine.


The 'slow delete' option has always been configurable, and the default has always been to only use it for the internal disk.
Real musicians never die - they just decompose

Re: .del files? #71 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 25 February 2018 - 09:35

But you were suggesting to enable it always - and there's s my objection.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: .del files? #72 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 25 February 2018 - 13:58

...What we SHOULD do is make the "slow delete" function no longer the default. Maybe remove it alltogether, ...


I don't see how you could read this as "enable it always".
Real musicians never die - they just decompose

Re: .del files? #73 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 28 February 2018 - 21:06

Maybe remove it alltogether, .

"It" can refer to either "remove the workaround" or "remove the choice" (as implied by "the default" -> choice).


Edited by Erik Slagter, 28 February 2018 - 21:06.

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users