Questions tagged [disk-access]

Disk access is where a program reads or writes directly to a storage media. Use with the language tag you're trying to perform the access with.

50 questions
0
votes
2 answers

Minimizing disk accesses when getting attributes of files in a directory

As the title suggests, I'm looking for a way to get attributes of a large number of files in a directory, but without adding the cost of an additional disk access for each file. For example, if I get the Name attribute of FileInfo objects in a…
ianbeks
  • 2,198
  • 1
  • 23
  • 26
0
votes
2 answers

File system stats

I use the following code to find the disk usage of my / int main() { struct statfs *stat; statfs64("/tmp",stat); perror(""); printf("%lu \n",stat->f_bfree*stat->f_bsize); return 0; } The perror keeps on printing "Bad Address"…
rjv
  • 6,058
  • 5
  • 27
  • 49
0
votes
1 answer

Determine iOS application's total disk usage/filesize

I have an app that allows users to download files and save them to the device's internal memory. I need to be able to display the total app disk usage at any given time. I found how to check the total device disk size and usage, but not specifically…
EtienneS
  • 1
  • 1
0
votes
1 answer

PostgreSQL JOIN, under the hood

I have question about PostgreSQL join. Does PostgreSQL create temporary table for JOINed tables or it makes everything without any temporary tables? The reason of my question is: When I make SELECT request with many JOINs, I see IO spike in write…
user1456308
-1
votes
1 answer

Which addressing mode to be used to access disk?

I am learning OS development and I'm in preliminary level. I created a simple boot loader. To access other files on the disk(say HDD or USB drive), which addressing mode should I use?(CHS or LBA or INT 13h extensions). Which of these addressing mode…
Panther Coder
  • 1,058
  • 1
  • 16
  • 43
1 2 3
4