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

View RPC RMI related code in Network file system

I am studying Network File system and there mechanisms, they use RPC to run commands on remote machine (server). I have tried bare RPC assignments, like generating stubs using RPCgen, and running client server code. I would like to know where in…
RootPhoenix
  • 1,626
  • 1
  • 22
  • 40
4
votes
1 answer

Adding a stream to an ISO as a File

I am using the IMAPI2FS Image Mastering API in Windows, and I'm trying to figure out how to add a stream as a file to the file system image before I generate the ISO. var fsi = new…
hatboyzero
  • 1,929
  • 1
  • 21
  • 44
4
votes
2 answers

Lightweight open-source shared file system over network

We have two web servers with load balancing. We need to share some files between those servers. These would be uploaded files, session files, various files that php applications create. We don't want to use a heavyweight, no longer maintained or a…
Zilvinas
4
votes
0 answers

Read/write data using mmap for encrypted file system

I am working on an encrypted filesystem that encrypts data just before writing it to disk and decrypts it right after reading from disk. Any file in disk is useless if not decrypted first. so far I changed standard read and write methods that…
Amir H
  • 482
  • 4
  • 10
4
votes
1 answer

Delete unused files and folders in an existing project

I recently started working on this php project that had some previous developers. These dev's made a bit of a mess of things, resulting in a huge amount of different files, in PHP as well as javascript files and stylesheets. I'd like to reduce the…
Michiel
  • 709
  • 9
  • 15
4
votes
2 answers

Python script to delete old SVN files lacks permission

I'm trying to delete old SVN files from directory tree. shutil.rmtree and os.unlink raise WindowsErrors, because the script doesn't have permissions to delete them. How can I get around that? Here is the script: # Delete all files of a certain type…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
4
votes
3 answers

Directory.GetFiles() performance issues

Using System.IO.Directory.GetFiles(), I would like to find images .png extension located on NAS server. string searchingString = "ZLLK9"; // original var fileList1= Directory.GetFiles(directoryPath).Select(p => new FileInfo(p)).Where(q =>…
FragrantJH
  • 95
  • 2
  • 9
4
votes
1 answer

Setting Timestamps on files/directories is extremely slow

I'm working on a project, which requires to copy a lot of files and directories, while preserving their original timestamps. So I need to make many calls to the target's SetCreationTime(), SetLastWriteTime() and SetLastAccessTime() methods in order…
wodzu
  • 3,004
  • 3
  • 25
  • 41
4
votes
1 answer

Ext2 File system Block bitmap

I was reading Ext2 file system details, and I am not clear with the fact that the number of blocks in a block group is (b x 8) where b is the block size. How have they arrived at this figure. What is the significance of 8.
RootPhoenix
  • 1,626
  • 1
  • 22
  • 40
4
votes
1 answer

NTFS vs FAT32 Search Time

I'm doing a paper on NTFS vs FAT32 and showing a comparison between both file systems. As far as my knowledge goes, I know that NTFS uses the MFT for holding all the files and directories whereas FAT32 only knows the following cluster for a specific…
4
votes
4 answers

Is there something like a Filestorage class to store files in?

Is there something like a class that might be used to store Files and directories in, just like the way Zip files might be used? Since I haven't found any "real" class to write Zip files (real class as in real class), It would be nice to be able to…
user350814
4
votes
2 answers

undefined reference to 'posix_fadvise'

I am using the Android NDK version: r9c I need the posix_fadvise() to advise OS do not cache the file, which I opened in order to bypass cache and force to I/O access the storage device when I need to read/write this file. The reason why I didn't…
Hsin-Hsiang
  • 411
  • 1
  • 3
  • 13
4
votes
0 answers

cordova file plugin applicationDirectory equivalent for windows 8 app

I am using Cordova and File plugin to list contents under assets directory in www. On iOS i'm getting the file entry passing cordova.file.applicationDirectory to window.resolveLocalFileSystemURL and everything is working as expected. var url =…
4
votes
4 answers

Order in FilesystemIterator

http://php.net/manual/en/class.filesystemiterator.php I noticed that FilesystemIterator returns the files ordered by name. Can anyone confirm this is true and it always happens? I haven't found anything in the docs. Another question, is there any…
Elfy
  • 1,733
  • 6
  • 19
  • 39
4
votes
1 answer

Problems using local variables in a remote commands

I need to write a script that takes in variables and makes a share on a remote system. This works: Invoke-Command -ComputerName server -ScriptBlock {$a = [WMICLASS]"Win32_Share"; $a.Create("C:\test","test",0)} But this doesn't: $sharepath =…
Dendory
  • 620
  • 2
  • 10
  • 21
1 2 3
99
100