Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestion: Preallocated file open
#3
Would not be able to open for input/output except if "detailed adjustment" is involved.

Why Linux doesn't need disk defragmenting software is something I haven't gotten up to look up. However what probably "casper" (Ubuntu utility for persistence) does is create a giant file, as much as possible which has contiguous sectors. Then it's simply treated like any other file system which means low-level calls which are always "OPEN FOR RANDOM" in BASIC.

Definitely Porteus and others work like this which involve creating modules that are loaded at startup to add to functionality.

I don't know either what is done during startup while it reports "<<VOLUMELABEL>> clean: xx/yy files, aa/bb blocks", if the OS is willing to show it to you (for example Debian "Testing" or Manjaro KDE). Some kind of rearrangement of files must be done to be able later to allocate at least a 4GB single file.

Another thing "LEN = 4096" in OPEN statement is 4096 bytes not 4096kB nor 4096KB. On Linux as well as Windows, the larger the disks are, the larger the sector sizes have to be according to format for performance reasons.
Reply


Messages In This Thread
Suggestion: Preallocated file open - by doppler - 01-09-2023, 01:01 AM
RE: Suggestion: Preallocated file open - by mnrvovrfc - 01-09-2023, 03:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Download the file from the internet and extract the .zip file quickbasic 6 672 10-25-2025, 01:39 AM
Last Post: madscijr
  Cautionary tale of open, append, close doppler 3 870 01-16-2025, 10:23 AM
Last Post: doppler
  Mix mode input of a binary open file Question! doppler 5 1,489 11-28-2024, 03:06 PM
Last Post: Petr
  qb64 "OPEN" linux /dev/ devices Parkland 2 793 06-30-2024, 02:52 AM
Last Post: DSMan195276
  suggestion: create a custom puppy linux distro that includes QB64PE out of the box madscijr 13 2,829 02-07-2024, 02:25 PM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)