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 Monitor Changes in a Directory on Mac OS X?

In the Windows API, when you monitor a directory, the callback provides what changed. How do I accomplish the same for Mac OS X? I looked at the File System Events API and the Kernel Events API and it seems like they both watch a file descriptor and…
chacham15
  • 13,719
  • 26
  • 104
  • 207
4
votes
2 answers

get filesystem mount point in kernel module

I want to get the filesystem mount point for a file system in my kernel module, which is a stackable filesystem. Eg. if /home/ab/abc is a file and /home is mounted on a different filesystem I want to have a dentry or path struct to /home. I want to…
gaurav
  • 872
  • 2
  • 10
  • 25
4
votes
3 answers

How to log daily changes in Linux Filesystem?

Can anyone please suggest me some script or mechanism so that I can record all the Changes made into my GNU/Linux File System on daily basis. Example: Suppose I make the following changes on 1-Jan-2012: File_Modified …
Sandeep Singh
  • 4,941
  • 8
  • 36
  • 56
4
votes
2 answers

Path Not Found - BULK Insert into SQL Server via VMWare Fusion

My machine is a macbook pro. However, my company's data is in SQL Server. In order to access it, I need to use VMWare Fusion to run SQL Server Management Studio 2008 on Windows XP. When I attempt to run a bulk import (via instructions from…
mikebmassey
  • 8,354
  • 26
  • 70
  • 95
4
votes
4 answers

File system testing tools

We are developing file system filters and we need to automate the testing on all platforms we are targeting (Windows, OS X, Linux). What tools would you recommend that will check if a particular mounted file system behaves properly. Here the word…
KIV
  • 745
  • 8
  • 12
4
votes
1 answer

Using the Sleuth Kit function tsk_fs_open_img() returns an error that the FS is not a FAT FS

I am writing a program using the Sleuth Kit Library that is designed to printout the File Allocation Table of a FAT32 filesystem. Everything in my program works fine until I call the tsk_fs_open_img() function. At that point the program returns…
4
votes
2 answers

How to obtain direct access to raw HD data in C?

I need to do a complete format on a USB stick (FAT16 or FAT32), put a file on the drive, then delete it and recover the file using a C program. Could anyone give me a hint on what should I use to accomplish this? I understand the layouts of the…
Álvaro
  • 269
  • 1
  • 9
4
votes
2 answers

Optimal algorithm and data structure for simulating a file system

I have the following question from an interview test (it has to be short and easy): I have to build a file system. I have to create a file object let's say it has an id. I have to create a Directory it has an id and I can add some assisting data. I…
mary
  • 869
  • 5
  • 13
  • 26
4
votes
3 answers

What is the best way to check file system capacity using .Net?

What is the best way in .Net to make sure a path as capacity to store a file. I need to makes sure I have room for the file before I download is becasue the source will not allow the file to be downloaded a second time. I have looked at…
Matthew Whited
  • 22,160
  • 4
  • 52
  • 69
4
votes
1 answer

Write system call writes data to disk directly?

I've read couple of questions(here) related to this but I still have some confusion. My understanding is that write system call puts the data into Buffered Cache(OS caches as referred in that question). When the Buffered Cache gets full it is…
FourOfAKind
  • 2,298
  • 5
  • 31
  • 34
4
votes
1 answer

File hierarchy for storing image in a social-networking website?

Which type of file-system is beneficial for storing images in a social-networking website of around 50 thousand users? I mean to say how to create the directory? What should be the hierarchy of folders for storing images (such as by album or by…
Shivam Agrawal
  • 2,053
  • 4
  • 26
  • 42
4
votes
1 answer

file storage + permissions : mongodb vs filesystem approach

The java web app I'm developing allows users to upload files (pictures and documents) to their profiles and define access rules for those files (define which of the other users are able to view / download the file). The access control / permission…
azpublic
  • 1,404
  • 4
  • 20
  • 42
4
votes
8 answers

File and directory with same name in same parent directory - Solaris 8, ufs

Ok, I have been working with Solaris for a 10+ years, and have never seen this... I have a directory listing which includes both a file and subdirectory with the same name: -rw-r--r-- 1 root other 15922214 Nov 29 2006 msheehan drwxrwxrwx …
Jonathan Bourke
  • 235
  • 2
  • 11
4
votes
2 answers

What is the data structure of the Inode number like?

I am flabbergasted by the definition of the inode number: An inode is a data structure on a traditional Unix-style file system such as UFS or ext3. An inode stores basic information about a regular file, directory, or other file system object.…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
4
votes
1 answer

Chrome Extension HTML Filesystem Access

I am looking to save a file to a local path. I have the weblink for example (http://www.website.com/files/info.pdf) and a config setting storing the users desired path (defaulted to download directory, but they can change it. Everything I am reading…
Bill Bonar
  • 1,017
  • 2
  • 10
  • 22