Questions tagged [filesystems]

A file system is a way of organizing data on a computer system. Typically a file system consists of files, folders (normally a special kind of file) and an API that can be used for interacting with files.

File Systems (or filesystems)

A file system is the specification of how files in a computer should be logically stored, named and organized. File systems present to users a human-readable format of data organization in the computer, where each file is a discrete unit of data.

File systems present only a logical format. They don't necessarily reflect the way the data is physically stored on a computer disk drive, or other storage device. Since the computer actually stores data in bits, data on a storage device lacks any structure; consisting of nothing more than a series of 1s and 0s.

File systems therefore give structure and meaning to that data, by — at the very minimum — giving an arbitrary collection of bits a file name and maintaining a record of this file physical location on the storage device.

Common Elements

Other than file names, common file systems also describe and maintain directories and file attributes, which serve as a means to further structure data organization and to give files specific purposes, security features or functionality.

File systems usually store this information in table-like format in a specific region of the storage device. Each file is listed on this table with its location, length and other properties clearly declared. An operating system that understands the filesystem format can then read this table to access a file in order to edit, rename, delete, move or alter any of its attributes.

For more reading

File System, at Wikipedia

Various file system specifications

9576 questions
4
votes
2 answers

cannot import s3fs in pyspark

When i try importing the s3fs library in pyspark using the following code: import s3fs I get the following error: An error was encountered: cannot import name 'maybe_sync' from 'fsspec.asyn'…
thentangler
  • 1,048
  • 2
  • 12
  • 38
4
votes
0 answers

tmpfs mount for dockerfile

I want to mount a tmpfs filesystem in docker container. For this I am passing mount command like this: docker run --mount type=tmpfs,destination=/tempdisk,tmpfs-mode=770,tmpfs-size=4m --name projectname projectname:latest The above command is…
abc def
  • 55
  • 6
4
votes
6 answers

Testing equivalence of file paths

There are two strings in a program. Each of them contains a path to some file or folder. How can I check in C++ whether these paths are to the same file/folder? Can I use the Windows API to do this?
Vitaly
  • 597
  • 1
  • 5
  • 12
4
votes
2 answers

Isn't everything block-storage? (File-storage, object-storage, block-storage)

I try to distinquish the known storage types File-, Block- and Object-Storage and I am stuck on one point for hours now: In the end, on any type of storage data is stored as blocks of bits on a drive, isn't it? And is "File-Storage" not the same as…
TGY
  • 303
  • 3
  • 10
4
votes
1 answer

Automate displaying Attributes column in Windows File Manager

I am trying to automate displaying the Attributes column in Windows File manager in the Details view. This column should be displayed for a specific folder only (not for all folders in the system). As far as I know, this could be made via a…
Coder
  • 220
  • 2
  • 10
4
votes
1 answer

macFuse requires Recovery mode on Mac OS 11+

Since Mac OS 11 Big Sur release Apple allows installation of kext drivers in the Recovery mode only. It also prohibits installation of kext drivers from Apple store. Which I guess is the end of macFuse, at least for virtual/cloud file systems. What…
4
votes
5 answers

An example project for network-programming written in C/C++

Are there good open-source projects on P2P file-sharing systems or distributed file systems written in C/C++ ? I need a project to start with network-programming. Can anyone give me any suggestions?
MainID
  • 29,070
  • 19
  • 57
  • 70
4
votes
2 answers

File '(null)' isn't writable Exception (EXPO IOS) React Native

i'm developing an expo app in which i'm generating QR Code.i'm getting base64 string which i can save as jpg or png in gallery/album.so far, On android it is working fine as expected.But On IOS it is giving this Error File '(null)' isn't…
Osaf
  • 192
  • 1
  • 1
  • 15
4
votes
5 answers

Method for abstracting filesystems in a C program

I'm starting out a program in SDL which obviously needs to load resources for the filesystem. I'd like file calls within the program to be platform-independent. My initial idea is to define a macro (lets call it PTH for path) that is defined in the…
Scribble Master
  • 1,100
  • 3
  • 11
  • 17
4
votes
1 answer

Possible failure of 'rename(2) old new' then 'stat(2) new' sequence?

I am investigating a customer issue using a legacy software of my company with poor evidences (no error trace). While reverse engineering the code I have spotted a C fragment that I am suspicious about, possibly at the root cause. While I can work…
sylvain
  • 41
  • 4
4
votes
1 answer

On which Windows versions is Cloud Files API supported?

Microsoft website says about Cloud Files API (Cloud Sync Engines): Starting in Windows 10, version 1709, Windows provides the cloud files API. However, OneDrive that is built using this API can run on earlier Windows versions, including Windows…
4
votes
2 answers

What API is available to create a Drive on the Windows File System?

I'm basically looking for an example of the API used by, for example, an external USB hard drive driver that adds a new Drive to the file system on Windows. Thanks!
Veggie
  • 397
  • 2
  • 14
4
votes
3 answers

c++ execute code from no file system

First of all, had a hard time figuring out a title, and it's a bit ambiguous, but oh well. Alright, so I have a mixed c++ & asm bootloader program. I can copy it onto my mbr and run it. The only problem I'm having is the fact that the mbr is very…
Kelly Elton
  • 4,373
  • 10
  • 53
  • 97
4
votes
1 answer

How to authenticate fsspec for azure blob storage

From a django REST API view I am trying to access a file that is stored in an azure storage blob. I would like to open it without downloading it into a file, as shown here. Read access is sufficient. For this I scetched out my view like so: import…
4
votes
1 answer

Did the behaviour of deleted files open with FileShare.Delete change on Windows?

We have been using the following code for several years. /// /// Opens a file and returns an exclusive handle. The file is deleted as soon as the handle is released. /// /// The name of the…
eisenpony
  • 565
  • 4
  • 10