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

System.IO.Path equivalent in iOS

There are a lot of nice little functions in System.IO.Path like replacing a file extension, append to a path, getting a filename, getting a directory from a path in C#. Is there an iOS equivalent or somewhat close API? thanks!
madmik3
  • 6,975
  • 3
  • 38
  • 60
4
votes
1 answer

Using deprecated functions on older API versions?

Background: I am making my app with minimum API level 17. I was looking up ways to get the size of the file system and saw this: http://developer.android.com/reference/android/os/StatFs.html However, a lot of the newer functions are only available…
KaliMa
  • 1,970
  • 6
  • 26
  • 51
4
votes
2 answers

Working with block special files/devices to implement a filesystem

I've implemented a basic filesystem using FUSE, with all foreseeable POSIX functionality implemented [naturally I haven't even profiled yet ;)]. Currently I'm able to run the filesystem on a regular file (st_mode & S_IFREG), but the next step in…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
4
votes
1 answer

Unicode in perl, mkdir exercise

I'm currently learning the art of Unicode Programming, and applying it to a personal project. Soon I realized how it is really difficult to get it right, and even to understand if you did it correctly: if the tool is wrong, you can be mistaken in…
Dacav
  • 13,590
  • 11
  • 60
  • 87
4
votes
1 answer

Gradle: Could not expand ZIP because of file name too long

I am using Ubuntu 14.04 and ext4 file system, which does not allow file names longer than 143 characters. There is a dependency that causes a problem due to a long file name. Here are more details: * Exception…
Ivaylo Toskov
  • 3,911
  • 3
  • 32
  • 48
4
votes
2 answers

Generate "explorer tree" in Java efficiently (not using recursion)

I have a question which could be language-agnostic but for this particular implementation I'm using Java. It is possible and relatively trivial to list the folders in a directory - using a function like this: private DefaultMutableTreeNode…
user257111
4
votes
2 answers

How to organize and manipulate pictures in filesystem?

Although it may not seem like that but there is a little questions about this subject. I am not asking if I should use DB or filesystem, the file system it is, but I am asking what is the best way of organizing pictures in file system that will be…
100r
  • 1,099
  • 1
  • 12
  • 24
4
votes
0 answers

Programmatically write to an android device

I would like to write a program in java that copies mp3 files from my PC, renames them so they sort correctly, and transfers them to the sdCard on my Android phone via USB. I assumed this would be a trivial task since I have already successfully…
G-Cam
  • 261
  • 3
  • 12
4
votes
2 answers

Python's os stat is returning wrong inode value

I'm running CentOS Linux. I create a directory as follows using a proprietary filesystem: $ mkdir fooDir First, I check the inode value using "ls -ldi": $ ls -ldi total 4 9223372036854783200 drwxrwxrwx 2 root root 4096 Jan 6 20:58 fooDir Then,…
jersey bean
  • 3,321
  • 4
  • 28
  • 43
4
votes
0 answers

what is the better approach to scan filesytem for mp3 files in android?

I am trying to create an android mp3 player appi want to scan entire filesystem for mp3 files(only once during first time)the below class is responsible for scaning of mp3 files public class Mp3Scanner implements Runnable{ private static final…
prasad
  • 1,277
  • 2
  • 16
  • 39
4
votes
4 answers

Reading a sector on the boot disk

This is a continuation of my question about reading the superblock. Let's say I want to target the HFS+ file system in Mac OS X. How could I read sector 2 of the boot disk? As far as I know Unix only provides system calls to read from files, which…
titaniumdecoy
  • 18,900
  • 17
  • 96
  • 133
4
votes
2 answers

NTFS Filesystem Time

I tested this on windows xp. If I do Create a file. Write to the file. Close the file.(Then, the file's LastWriteTime is changed) But if I do Create a file. Set LastFileTime of the file. Examine the time by calling GetFileTime (Then, the file's…
Benjamin
  • 10,085
  • 19
  • 80
  • 130
4
votes
3 answers

How to make squash file system read-write

My RTL8196EU Realtek board having read-only squash file system. How do I make this file system Read-Write. I have tried mount command mount -o remount,rw / But its not fixing the problem. Help me make a Read-Write squash fs
runner
  • 591
  • 2
  • 7
  • 20
4
votes
5 answers

Check if directory path ends with DIRECTORY_SEPARATOR

In PHP I'm receiving a string from the user for a local file directory $path I want to know if they've included the trailing slash (/) or not. I would like this to be cross platform so I'd like to use the PHP constant DIRECTORY_SEPARATOR My failed…
Shane Stillwell
  • 3,198
  • 5
  • 31
  • 53
4
votes
2 answers

Prevent Cleaner apps from deleting my apps files

What I Have I have an app which needs to store some of its important files in the SD card and Internal memory with some random names. The Problem Some cleaner apps like CCleaner are detecting these files as junk files and deleting them. How can I…
Aritra Roy
  • 15,355
  • 10
  • 73
  • 107