Virtual File System provides a single API for accessing various different file systems. It presents a uniform view of the files from various different sources, such as the files on local disk, on an HTTP server, or inside a Zip archive.
Questions tagged [vfs]
321 questions
90
votes
12 answers
Find size and free space of the filesystem containing a given file
I'm using Python 2.6 on Linux. What is the fastest way:
to determine which partition contains a given directory or file?
For example, suppose that /dev/sda2 is mounted on /home, and /dev/mapper/foo is mounted on /home/foo. From the string…

Federico A. Ramponi
- 46,145
- 29
- 109
- 133
53
votes
4 answers
Is rename() atomic?
I am not being able to check this via experiments and could not gather it from the man pages as well.
Say I have two processes, one moving(rename) file1 from directory1 to directory2. Say the other process running concurrently copies the contents…

Lipika Deka
- 3,774
- 6
- 43
- 56
45
votes
6 answers
Inode vs Vnode Difference
I had some doubts regarding an Inode vs a Vnode. As far as my understanding goes, inode is the representation of a file that is used by the Virtual File System. Whereas vnodes are file system specific. Is this correct?
Also, I am confused whether…

Aadarsh Kenia
- 461
- 1
- 4
- 5
21
votes
3 answers
Difference between statvfs() and statfs() system calls?
Why do the statfs() and statvfs() calls both exist when they're so similar?
Under what circumstances would I prefer one over the other?

Matt Joiner
- 112,946
- 110
- 377
- 526
19
votes
2 answers
How to construct an in-memory virtual file system and then write this structure to disk
I'm looking for a way to create a virtual file system in Python for creating directories and files, before writing these directories and files to disk.
Using PyFilesystem I can construct a memory filesystem using the following:
>>> import fs
>>> dir…

James Vickery
- 732
- 3
- 10
- 23
19
votes
2 answers
How linux identify a particular file system to execute system call
Can please summarize the events/steps that happen when I try to execute a read()/write() system call. How does the kernel know which file system to issue these commands.
Lets say a process calls write().
Then It will call sys_write().
Now probably,…

Haswell
- 1,573
- 1
- 18
- 45
15
votes
2 answers
What is a Virtual file system or a file system in userspace?
I just came across a VFS and a filesystem in userspace like FUSE.
Now, as far as I understand, it simulates a file system, so that an application can have a standard file system hierarchy. But I don't understand, why do we need a separate file…

zengr
- 38,346
- 37
- 130
- 192
14
votes
1 answer
List all files a process accesses in an efficient manner
I would like to log all file accesses a process makes during it's lifetime in an efficient manner.
Currently, we are doing this by using LD_PRELOAD by preloading a shared library that intercepts C library calls that deal with file accesses. The…

user1595789
- 261
- 1
- 6
14
votes
1 answer
Risks and rewards of using /dev/autofs_nowait on OS X
Throughout the CoreFoundation framework source, POSIX filesystem API calls (e.g. open(), stat(), et al…) are wrapped in an idiom wherein a descriptor on /dev/autofs_nowait is acquired – with open(…, 0) – before the POSIX calls are made; afterwards…

fish2000
- 4,289
- 2
- 37
- 76
14
votes
2 answers
SQLite VFS implementation guide lines with FOpen*
I am about to implement a custom VFS (virtual file system) for a Netburner embedded device (non windows) using FOpen, FRead, FWrite, FSeek, and FClose. I was surprised that i could not find a FOpen* version of the VFS available. It would make it a…

Steven Smethurst
- 4,495
- 15
- 55
- 92
13
votes
1 answer
Samba 4.10 server config: using module "vfs_fruit" changes file creation mask for Mac clients, and I cannot control it
TLDR; With vfs objects = catia fruit streams_xattr in my smb.conf, files created on the shares using Macs do not inherit permissions and get extended ACLs.
Background
I'm setting up a NAS with a Samba share for our office, which is a 50/50…

Aksel Gresvig
- 715
- 1
- 9
- 21
13
votes
4 answers
Failed to create maven project: '.../pom.xml' already exists in VFS (IntelliJ)
When I would like to re-create a maven project with a name had been but have been deleted already, I receive the following error message:
Failed to create maven project: '.../pom.xml' already exists in VFS

Oliver Kocsis
- 633
- 1
- 6
- 12
12
votes
5 answers
Why can't I open a JBoss vfs:/ URL?
We are upgrading our application from JBoss 4 to JBoss 6.
A couple of pieces of our application get delivered to the client in an unusual way: jars are looked up inside of our application and sent to the client from a servlet, where the client…

skiphoppy
- 97,646
- 72
- 174
- 218
11
votes
1 answer
What are inode generation numbers?
I'm planning to implement a FUSE filesystem using low-level API and currently trying to understand the fuse_entry_param structure.
I wonder what unsigned long fuse_entry_param::generation actually means. Documentation says just that ino/generation…

drdaeman
- 11,159
- 7
- 59
- 104
9
votes
1 answer
VFS: file-max limit 1231582 reached
I'm running a Linux 2.6.36 kernel, and I'm seeing some random errors. Things like
ls: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Error 23
Yes, my system can't consistently run an 'ls' command. :(
I note…

Rick Koshi
- 945
- 1
- 11
- 21