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
2
votes
1 answer
The equivalent of path_lookup() of linux 2.6 in linux 3.7
I am reading "Understanding the Linux Kernel" 3rd edition, by D.Bovet & M.Cesati. In the chapter about Virtual file systems, they refer to the function "path_lookup()" that does the lookup for a given path. The book is based on linux-2.6.
I am…

hkassir72
- 135
- 10
2
votes
3 answers
How can I enumerate all the file in a directory in vfs c or c++?
I need to enumerate all the file in a folder and then navigate to the subfolder and do the same (recursion? sure).
Ideally the algorithm should work in the same way on linux & macos
DISCLAIMER: I have asked a similar question on POSIX: I'm now aware…

maborg
- 435
- 5
- 24
2
votes
0 answers
JBoss AS 7 upgrade to Java 7, JBoss VFS
We have an spring application which dynamically loads components based in the lib folder.
This application needs to be deployed on different AS, like Jetty,Tomcat,JBoss..
Now, JBoss has this VFS feature, where it does not really unpack your war it…

Arcturus
- 26,677
- 10
- 92
- 107
2
votes
2 answers
Specific file monitor using Apache Commons VFS API
I want to perform some operation after a file named (XXXXXX.txt) created in the specific directory. I just don't want to monitor the whole directory. How can i achieve this using Apache Commons VFS API? I tried with the below code, but it did not…

user1986707
- 33
- 4
2
votes
0 answers
Very Simple Linux VFS Implementation
I'm somewhat stuck on this, being my first attempt at any type of kernel development. My project is a bit more complex than this, but what I'm stuck on is very basic.
I want a read only file system with some directories in the root dir, and files…

Sam
- 31
- 5
2
votes
1 answer
Writing to hard disk from contiguous physical memory
I have an ARM based device, running linux, which is connected to a camera, and I'm trying to store captured frames to HD efficiently.
I'm developing in user space, but can modify drivers at will
I'm coding in C
Frames which are written into memory…

oferlivny
- 300
- 4
- 15
2
votes
1 answer
VFS write file to non-existing folder
I write a file with vfs to a folder which does not exist. I expect an exception or creation of this folder.
But none of them happen, instead there is a file created with the missing folder name (at least the content of the file is then correct).…

Darkpara
- 304
- 1
- 2
- 14
2
votes
3 answers
Is there a way in Powershell to provide virtual file systems in other file systems?
I know you can write support for custom PSDrives. But those are always a root of a file system. What would be nice if there was a way to allow for VFS start at arbitrary nodes of the file system, such as using Set-Location to enter archive file…

Joey
- 344,408
- 85
- 689
- 683
2
votes
2 answers
URI scheme is not "file". Unable to read file from classpath
I have Java webapp and I am trying to read a file from classpth.
if (fileName == null){
fileName = Thread.currentThread().getContextClassLoader().getResource("config.properties");
}
objFile = new File(fileName.toURI());
I have…

Tahir
- 3,344
- 14
- 51
- 69
1
vote
1 answer
Load persistence unit with vfsfile (exploded JAR) on JBoss 5.1/Hibernate 3.3.2
I am looking for help to fix a problem to appeared when migrating from JBoss4 to JBoss5.
There seems to be an issue with Hibernate support for VFS (introduced in JBoss5).
For modularity reason, multiple artifacts have persistence unit (pu)…

Olivier.Roger
- 4,241
- 5
- 40
- 68
1
vote
0 answers
getting absolute path of mount point in linux kernel
I'm currently working on enhancment to FAT file system implmentation in the linux kernel. I need to know just after a mount, what is the absolute path to the mount point. I tried different approaches, but it seems that the VFS mount and the actual…

stdcall
- 27,613
- 18
- 81
- 125
1
vote
0 answers
jsch thread hanging while reading from SFTP
I have noticed slowness in reading data from SFTP server, I have 10 parallel processes running in the different containers which are reading this data and slowness is usually observed in one container randomly. I am using commons-vfs to read data…

banjara
- 3,800
- 3
- 38
- 61
1
vote
1 answer
Tcl pathInFilesystemProc get current filesystem
When creating a vfs using the tcl api how do you get the current filesystem in Tcl_Filesystem.pathInFilesystemProc
My code looks something like this:
typedef struct {
FILE* dbFile;
/*...*/
} FSBackend;
void createFS(const char* dbFile)
{
…

Samuel
- 1,073
- 11
- 22
1
vote
0 answers
Disappearing dentries in linux kernel after reboot
I am trying to create chunk of vfs by kernel, this function create directories in my module. My code looks:
struct dentry *dentry;
struct path path;
int err, lookup;
lookup = LOOKUP_DIRECTORY | LOOKUP_REVAL;
mode |=…

QQa
- 11
- 1
1
vote
2 answers
How does the virtual filesystem handle syscalls like read and write?
(All of the code snippets are taken from: https://docs.huihoo.com/doxygen/linux/kernel/3.7/dir_97b3d2b63ac216821c2d7a22ee0ab2b0.html)
Hi! To establish my question I have been looking at the Linux fs code for almost a month now for research and I am…

Preet Derasari
- 80
- 7