How Can sfs Files Be Modified Since They Are Read Only?

Moderator: Forum moderators

Post Reply
JusGellin
Posts: 754
Joined: Fri Jan 19, 2024 11:12 pm
Has thanked: 90 times
Been thanked: 92 times

How Can sfs Files Be Modified Since They Are Read Only?

Post by JusGellin »

This is from another topic that I thought needed its own topic.
It would be better if it were answered as its own topic.

I'm wondering the same thing.
This has to do with whitelisting on a running system.
This seems like it would be another useful thing to fully understand.

This is from:
Re: Can a Save Folder Be Cleaned Up of Deletions?
https://forum.puppylinux.com/viewtopic. ... 95#p133295

Chelsea80 wrote: Wed Oct 16, 2024 6:52 pm

@bigpup

Very interesting topic, however it has left me a bit confused so excuse my lack of knowledge.

My highlight in bold

bigpup wrote: Wed Oct 16, 2024 1:22 pm

the whitelist thing, is only on builtin programs and files, that are originally in a Puppy versions different sfs files.
The sfs files are read only.
If you delete or remove something in these sfs's, it is only given a .wh at the end of it's name, not really deleted.
To the operating file system they are no longer seen.
This is what Remove Builtin packages program does.

If these SFS files are read only then how can something be deleted or removed ?

Thanks

User avatar
fredx181
Posts: 3250
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 408 times
Been thanked: 1412 times
Contact:

Re: How Can sfs Files Be Modified Since They Are Read Only?

Post by fredx181 »

JusGellin wrote: Thu Oct 17, 2024 12:18 pm

This is from another topic that I thought needed its own topic.
It would be better if it were answered as its own topic.

I'm wondering the same thing.
This seems like it would be another useful thing to fully understand.

This is from:
Re: Can a Save Folder Be Cleaned Up of Deletions?
https://forum.puppylinux.com/viewtopic. ... 95#p133295

Chelsea80 wrote: Wed Oct 16, 2024 6:52 pm

@bigpup

Very interesting topic, however it has left me a bit confused so excuse my lack of knowledge.

My highlight in bold

bigpup wrote: Wed Oct 16, 2024 1:22 pm

the whitelist thing, is only on builtin programs and files, that are originally in a Puppy versions different sfs files.
The sfs files are read only.
If you delete or remove something in these sfs's, it is only given a .wh at the end of it's name, not really deleted.
To the operating file system they are no longer seen.
This is what Remove Builtin packages program does.

If these SFS files are read only then how can something be deleted or removed ?

Thanks

If you delete some file while running the system that is by origin part of one of the main SFS's and save changes, it will just be "masked" (.wh file (0 bytes) is created in save storage (or in some newer Puppies (e.g. Bookworm) it works with a "character device file").
So I think that's what @bigpup meant, not directly delete from the SFS, as, indeed, it is read-only.
EDIT: However SFS's can be modified, by extracting, change the contents and re-create again, but that's another subject, I think. (edit: as mentioned in next post by ozsouth).

ozsouth
Posts: 1667
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 252 times
Been thanked: 754 times

Re: How Can sfs Files Be Modified Since They Are Read Only?

Post by ozsouth »

@JusGellin - sfs updater here (is for general sfs): https://forum.puppylinux.com/viewtopic. ... 86#p128286

Post Reply

Return to “BookwormPup”