Skip to main content

Questions tagged [filesystems]

Questions about algorithms and data structures for storing, organizing, and naming data in durable storage systems.

Filter by
Sorted by
Tagged with
2 votes
1 answer
103 views

Why does CLRS refer to the disk parts as pages rather than blocks?

I recently decided to review the B-tree chapter (chapter 18, p 486 in 3ed) in Introduction Algorithms, and found that they call pages what I always referred to as blocks or clusters: In order to ...
0 votes
3 answers
393 views

File conversion to binary format to save storage space

Our test log files are stored in .asc format. Each file contains around 5000 rows of these Logging Strings as shown in the image. I would like to reduce the size of these files.They are around 4-5 MBs ...
1 vote
0 answers
20 views

How can I connect a drive to a 16 bit custom intel 8088 system?

I'm embarking on a long-term project, aiming to build a computer based on the Intel 8088 architecture. This venture provides an excellent opportunity to deepen my understanding of computer hardware ...
0 votes
0 answers
44 views

How to know size of header of a WAV file

It will help to know how to figure out the size of header of a WAV file by looking at its byte structure. Source: http://soundfile.sapp.org/doc/WaveFormat/ UPDATE: On second look, it says ...
0 votes
2 answers
201 views

Why can't we mount multiple filesystem in same mountpoint?

Systems impose semantics to clarify functionality. For example, a system may disallow a mount over a directory that contains files; or it may make the mounted file system available at tha directory ...
0 votes
1 answer
154 views

WAV file header: Why 2 bytes for channel?

It is mentioned in 22 - 23 Number of Channels which will be 1 if mono, 2 if stereo. So why 22 and 23 (that is 2 bytes) allocated here? With 1 byte, we can put either 1 or 2.
0 votes
1 answer
424 views

Where is File Allocation Table in FAT32 file system stored?

I had been reading about File systems recently and came across the File Allocation Table in FAT systems. As per my understanding the File Allocation Table contains entries of the various files stored ...
0 votes
0 answers
41 views

Compression Gzip/7Zip

When I calculate the entropy values of files compressed with Gzip, PKZIP, 7ZIP and Winrar, I find that the compression rate of Gzip is higher than the others. The entropy value is higher (indicating ...
2 votes
0 answers
35 views

Log-Structured Filesystem -- why do we need an explicit, scattered inode map?

From OSTEP Chp. 43: The imap is a structure that takes an inode number as input and produces the disk address of the most recent version of the inode This makes sense to me as a solution to the ...
0 votes
0 answers
35 views

Difference between Distributed File System, Cluster File System and Parallel File System

On the internet, I am unable to find concrete definitions of these three types of file-systems. Can someone clearly explain the difference between these?
1 vote
2 answers
66 views

Meaning of "untyped bytes" in file systems

I am currently reading reading Chapter 11 of Operating Systems: Principles & Practice by Anderson and Dahlin, which speaks about file systems as abstractions for non-volatile storage. The ...
1 vote
1 answer
51 views

How does symlink work?

I am recently studying The Operation System, I am confused about how symlink work even after watching some YouTube videos, hope there's someone can help me out with some questions. According to wiki, ...
2 votes
0 answers
90 views

Questions about the Dancing Tree data structure

I would be very grateful if someone can clarify a little bit about the Dancing tree data structure that the Reiser4 filesystem uses. It's a presentation topic that I picked, however, there seems to be ...
1 vote
0 answers
67 views

Is there any advantage to a hierarchical directory system vs. tagging files?

I've wondered this for some years now. As near as I can figure, if individual files were tagged with each of the components in a typical path (e.g. each of ...
0 votes
1 answer
124 views

How can computers tell where the beginning and end of file/packet/frame headers are?

I'd like to know how a computer can determine the beginning and end of certain file components (attributes, headers, frame/packet/segment headers etc.) when these components can be omitted or added in ...
1 vote
1 answer
92 views

Would this be the correct time complexity?

I'm currently working on an exercise that has made me ponder for a bit. The following exercise is from the 6th Edition of Data Structures and Algorithms in Java: An inverted file is a critical data ...
1 vote
1 answer
62 views

How can I prove the file on DVD is the original?

I have an old file written to a DVD-R several decades ago, and it turned out this file can potentially has some value as NFT (non-fungible token). The file was published online and have been copied ...
2 votes
0 answers
39 views

Primary File Organization in DBMS - Files of ordered records (sorted files)

"Fundamental of Database Systems", 3rd ed. by Elmasri and Navathe, page 136 says: "We can physically order the records of a file on disk based on the values of one of their fields [...]&...
0 votes
0 answers
31 views

How to study in and outs ofOperaring Systems

I want to study operating systems in depth, in particular windows, linux and android OS. What is the best way to get started?
2 votes
0 answers
107 views

Exceeding limits of virtual address space

I still am confused whether I am asking the right question but here goes Consider a X bit processor. It can address theoretically a main memory of 2^x bytes(assuming byte addressable). Now consider an ...
0 votes
0 answers
18 views

where to get detailed information about some file format?

i want to learn about the structure of a .blk file but the problem is I don't know where to look for detailed information of this sort, most of the google searches I made gave me links to viewers.
0 votes
1 answer
39 views

Where to learn about filesystem file placement strategies?

I'm facing a task similar to what filesystems do. I have a bunch of continuous allocated space and I need to place pieces of variable length data into it, each piece of data can change size over time....
1 vote
1 answer
54 views

Why has Windows used NTFS for 20+ years, while many different systems have trendend in the linux community over the same time?

I'm a first year MS:CS student, and my data structures class has inspired me to research file systems and their implementations. I recall using ext2, then ReiserFS, then ext3, then ext4, and now ...
0 votes
0 answers
48 views

Renaming of linear list directory

Consider a linear list-based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of ...
0 votes
2 answers
969 views

Is it possible to wear-level a FAT32 file system?

Because SD cards use flash memory, they should requires wear leveling to avoid significantly shortening the life of the card. At the same time, my understanding is that they usually use a FAT32 file ...
1 vote
2 answers
266 views

Linked allocation in operating systems: why not use a doubly linked list?

I'm reading here that linked allocation uses a linked list, where each block has a pointer to the next block. For sequential access, this would take moving through the blocks one by one. Would it not ...
1 vote
2 answers
141 views

Is a file a string of zeros and ones?

Is a computer file just a string of zeroes and ones? If so, can it start with zeroes? I have not been able to find an answer, surprisingly.
2 votes
1 answer
3k views

What type of an algorithm is being used for directory structure scanning?

So after learning about DFS and BFS yesterday in my class I was curious as to how is scanning on various file system being done. I spent quite a bit of time trying to look for some references on the ...
1 vote
0 answers
43 views

Understanding Cyclic Dependencies when using Soft Update for Filesystems

We recently delved into the concept of "Soft Updates" as a mean of maintaining a Filesystem as consistent. The solution, as we learned it, calls for 3 basic rules: We'll create a pointer to a file ...
2 votes
2 answers
135 views

How does a File System handle an internal edit to a file?

When you edit information in a file, but you add in more information than was already present, how does the file system handle it without an overflow into the next section of the file? Here's an ...
2 votes
2 answers
88 views

Why can't un-journaled filesystems be resized?

I have yet to find an un-journaled filesystem that can be resized without data loss or intermediate conversions, and I'm wondering why that is. Filesystems like FAT, for example, leave free space at ...
1 vote
0 answers
20 views

Custom version control

I develop an open source power systems software and I would like to include a simple collaborative mode so that more than one person could work on building a power system model. So far I have a table-...
1 vote
0 answers
66 views

How to do atomic operations on systems that don't support it?

I need to sync data with WebDAV and other similar backend that do not have a concept of atomic operations. In some cases, I might need to read a file, change its content and write it back. And of ...
1 vote
0 answers
70 views

How do I implement fixed block storage file system in database from typical file-level file system?

I've a typical parent ID based file system in database and files are physically stored on disks. What I want is to store files in blocks (4096K) of fixed size. Chunking can be used I found, but how ...
2 votes
2 answers
66 views

What is the term for two file formats that describe the same amount of information?

I am working on file formats conversion. Some of them can be converted back and forth to others without losing any information (fields or precision of the numbers encoded), others file format do not ...
0 votes
1 answer
60 views

No. of disk blocks writes required for writing the file

Assume that a file is written using write(fd, buf, K) system calls, where fd is the file descriptor, and K, the number of files to be written to the current file offset which is a multiple of the disk ...
1 vote
1 answer
563 views

How pictures and videos are usually loaded in Memory? [closed]

Lets assume I'm talking about Jpeg and Mp4 and a general video player(not sure if different ones load it differently, if they do please tell) So do video players (process) usually load the entire ...
2 votes
1 answer
628 views

What exactly is a "binary file"?

I suspect this may be more of a concept / theory question, but, I haven't been able to wrap my brain around what exactly a binary file is. I've read links such as the below: https://en.wikipedia.org/...
0 votes
1 answer
64 views

Where are file-information like "created" or "last edited" actually stored?

I can access some information about the files ("created" or "last edited") on my PC. But where are those information actually stored? Are they stored by the operation system? Could be possible as if ...
1 vote
1 answer
224 views

what does the author mean by directory structure in operating system?

I'm reading Operating System Concepts by Avi Silberschatz(9thE), in section 11.4 File-System Mounting, the author explains the steps of filesystem mounting as follows: The operating system is ...
1 vote
1 answer
397 views

What's the directory structure on disk that keeps the information of all files?

I'm reading Operating System Concepts by Avi Silberschatz(9thE), in chapter 11 File-System Interface, when the author explains the concepts of file, he states that The information about all files ...
1 vote
2 answers
116 views

Random file access in a block based file format

I am writing a program to store, retrieve and delete "blocks" of data of varying sizes. The way it currently works is by keeping a database storing the locations of the blocks and the locations of ...
1 vote
2 answers
290 views

File systems and writing one

I am going through the following series of lectures on OS development . http://www.brokenthorn.com/Resources/ In the fourth tutorial , I came across the term " OEM" parameter block that stores the ...
0 votes
0 answers
61 views

How are files managed in a filesystem?

I have recently been interested in low level computer science (as a hobby), and I have just learned about the way a computer organizes and stores information on a hard drive. I have learned the basics ...
-1 votes
1 answer
191 views

Source code for Network File System [closed]

I am doing a small project which explains how operations (file open, file write etc.) are done in client side and server side in network File system. Can anyone help me out providing its source code ...
2 votes
1 answer
359 views

SSD vs HDD Retrieval Time

On an HDD if data is fragmented the discs need to be spun to where the next block in the file is, so how and where data is stored can make a big difference in how long it takes to retrieve the data. ...
0 votes
2 answers
318 views

On what abstraction is a filesystem actually built on?

Data is read in terms of a block from a storage device(magnetic, optical, flash). Size of the block depends upon the filesystem and os. The physical device may have different units of storage like ...
2 votes
1 answer
100 views

Monitoring files in preservation archives

What are efficient and accurate techniques for monitoring the recoverability and integrity of files in very large preservation archives? In very large archives, the time taken to recompute checksums ...
0 votes
0 answers
561 views

magnetic Disk Calculation

A magnetic disk has 1000 cylinders, 10 tracks per cylinder, 128 sectors per track, ...
1 vote
1 answer
50 views

Why splitted text files is bigger than a large one with the same content?

I have this large text file that when unzipped has about 2GB. I split this one into multiple(more than 5 million) files and now I have a folder of about 20GB, how is this possible?