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
1 answer

How to tag and store files, by metadata, in Python?

I want to build a manual file tagging system like this. Given that a folder contains these files: data/ budget.xls world_building_budget.txt a.txt b.exe hello_world.dat world_builder.spec I want to write a tagging system where executing py…
Onur-Andros Ozbek
  • 2,998
  • 2
  • 29
  • 78
4
votes
1 answer

Docker installation issue : Failed to mount overlay: no such device storage-driver=overlay2

I am trying to install docker on Ubuntu 20.04.3 LTS. I installing from *.deb packages. While installing docker, it runs into the following error. Failed to mount overlay: no such device storage-driver=overlay2 I created { "storage-driver":…
user3817287
  • 119
  • 1
  • 13
4
votes
2 answers

Proof memcache is faster than file system caching?

Is there any theory that says that a cache should be faster than a file system? I think that since the file system also uses caching there is no scientific proof that we should move content from file system to a cache such as memcache when the…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
4
votes
1 answer

How to enable "Long Path Aware" behavior for setting the current directory in a C++ windows console app

In a C++ console application on windows, i'm trying to break the MAX_PATH restriction for the SetCurrentDirectoryW function. There are many similar questions already asked but none got a usable answer: How to enable "Long Path Aware" behavior via…
ridilculous
  • 624
  • 3
  • 16
4
votes
3 answers

Is ext4 considered file storage or block storage?

I have been researching the differences between File, Block and Object storage. I've tried to relate the native Linux File System with one of these types of storing data, however, some doubts that come to my mind make me evidence that I have some…
roldanx
  • 179
  • 1
  • 1
  • 8
4
votes
3 answers

In Python, how can I get the file system of a given file path

In python, given a directory or file path like /usr/local, I need to get the file system where its available. In some systems it could be / (root) itself and in some others it could be /usr. I tried os.statvfs it doesnt help. Do I have to run the…
Umapathy
  • 772
  • 8
  • 21
4
votes
1 answer

Is using fs::rename to move files between different file systems atomic?

On Linux, if we move (rename) a file from one file system to another like this: fs::rename("/src/a", "/dest/a")?; is it possible the file /dest/a to become visible/available to other potential readers (processes that scan /dest/ for example) before…
at54321
  • 8,726
  • 26
  • 46
4
votes
1 answer

Creating a filesystem file in C++

Is there a way to create a filesystem file that can be mounted in C++? I want to make a file containing a NTFS filesystem and mount it to a new partition. I want this done in C++ in Windows. Is there a library and perhaps some code examples that…
4
votes
0 answers

How to implement Streaming Mode using Cloud Filter API (cfapi)?

I am trying to implement streaming mode using Cloud Filter API. My aim is to create a drive with high security - the file content is available only when the drive is online and no data is stored on the client machine. If permissions are withdrawn,…
4
votes
0 answers

How to implement Oplock (opportunistic locking) in .NET?

I need to implement Oplock (opportunistic locking) in .NET project. Here is the scenario that I need to implement: App 1 opens the file and does NOT allow writing (for example, opens a file with FileShare.Read). App 2 requests writing to the file…
user16668952
  • 184
  • 4
4
votes
0 answers

create all folder in a big path (with subfolders)

Im trying to create all folder in a path that reach to a file, for that by a little search I found out about std::filesystem::create_directories its ok but the problem of using it is looks like its can't handle long paths with so many subfolders,…
file-tracer
  • 329
  • 1
  • 7
4
votes
3 answers

Is there an async way of knowing a file has changed?

I would like to asynchronously monitor a file for any changes. That is I would like to have a call back (possibly from kernel) in my program when the file has been modified/deleted. The file is just a plain text file. I know one can do this using a…
vinodkone
  • 2,731
  • 4
  • 22
  • 21
4
votes
2 answers

Pyodide filesystem for NLTK resources : missing files

I am trying to use NLTK in browser, thanks to pyodide. Pyodide starts well, manages to load NLTK, print its version. Nevertheless, while the package downloading seems fine, when invoking nltk.sent_tokenize(str), NLTK raises the error that it can't…
Sylvain
  • 679
  • 9
  • 13
4
votes
2 answers

Get the original file name in java?

In Windows os, I have a file, for example "README" . Using java, File("readme").exists() will return true How to get the true file name, something like this: new File("readme").getTrueFileName() //return "README"
zhongshu
  • 7,748
  • 8
  • 41
  • 54
4
votes
1 answer

File browser access to Chrome's sandboxed filesystems

I'm writing a Google Chrome app that stores things locally with the HTML5 FileSystem API. Is there any way to use Windows Explorer to get to the directory where Chrome stores these files or is it entirely virtual and inaccessible from outside the…
Michael Taufen
  • 1,704
  • 1
  • 17
  • 22