Questions tagged [vfs]

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.

321 questions
2
votes
1 answer

How DAPLink make its virtual file system?

I am new to DAPLink. Just know that it could turn a cortex m0 chip into a mbed Interface, then we could program or debug thought it. But I found that the mbed Interface has about 8MB USB Disk. How does it work? As we known, a mbed Interface…
JerryYip
  • 95
  • 8
2
votes
2 answers

In the newer Linux, which function in ext4 is responsible for read?

Conventional filesystems create a struct file_operations structure to implement the VFS functions. For example, in the ext4 (Linux 4.0 and before) the struct file_operations ext4_file_operations make the read pointer point to new_sync_read. Linux…
Akr
  • 179
  • 2
  • 4
  • 13
2
votes
0 answers

How to terminate long running VFS operation

I need to terminate long running SFTP put operations (sometimes the transfer hangs and takes 10-15 minutes to complete). Is there a way to do this using Apache VFS? The SftpFileSystemConfigBuilder has a setTimeout method, but that only affects the…
szmeti
  • 241
  • 1
  • 7
2
votes
1 answer

vfs2 and samba(smb) version 2

we disabled smbv1 in our windows machine and now we can't connect using smb2 we are using commons-vfs2(2.0) and commons-vfs2-sandbox(2.0) here is my code: @Test public void testConnection() throws FileSystemException { String folder =…
Michael Biniashvili
  • 500
  • 1
  • 12
  • 24
2
votes
2 answers

WSO2 - VFS not moving file to the right path on failure

I'm facing a little issue on WSO2 VFS system. I have a simple inbound-endpoint that scan a folder every 5 seconds to read a CVS file. I want to handle the case where the filename is not the expected one. I managed that with an error sequence but…
Julien GRESSE
  • 354
  • 1
  • 13
2
votes
4 answers

How can I change vfs FileURI dynamically in WSO2 ESB?

I have this parameter with a path file: file:///Users/Desktop/test/in I need to change FileURI value dynamically, for example, using the value of a property that was set before. Something like…
2
votes
1 answer

PHPUnit Test error: Object of class (...) could not be converted to string

First of all, I'm new in PHPUnit testing and PHP, sorry if I'm missing something too obvious. Ok, now, for my question: I'm using a Virtual File System called VfsStream to test the function unlink( ). For some reason in my testing this error…
B. Pereira
  • 75
  • 1
  • 13
2
votes
1 answer

VFS2 - FileSystemException: Could not determine the type of file

I am trying to connect to a FTP server using VFS and upload a txt file, while doing that I am getting error as "commons.vfs2.FileSystemException: Could not determine the type of file"
2
votes
1 answer

How to read actual file data from FreeBSD VFS vnode?

I am currently trying to extract file data from Freebsd VFS vnode. struct vnode { /* * Fields which define the identity of the vnode. These fields are * owned by the filesystem (XXX: and vgone() ?) */ …
lostdong12
  • 77
  • 7
2
votes
1 answer

How to read file from WSO2 ESB without using poll interval

I am able to read the file from specified READFILEURI path if I can specify the poll interval. My current requirement is to read the file from given path only when we trigger the proxy service.It should not poll the file automatically.When I click…
2
votes
1 answer

VFS sqlite in Java

We have our own VFS implementation for sqlite, and I was wondering if there is a way to use a non default VFS when opening a JDBC SQLITE adapter? I could not find any documentation about it. Thanks!
Mattan
  • 733
  • 7
  • 19
2
votes
1 answer

ClassNotFoundException: org.apache.commons.vfs.provider.FileProvider

I'm using the vfs2 (not vfs) to access ftp. Now I also use the smb protocol but it does not work. I always get the Exception: ClassNotFoundException: org.apache.commons.vfs.provider.FileProvider But as I'm using vfs2 it is weird that it searches…
Philipp
  • 4,645
  • 3
  • 47
  • 80
2
votes
1 answer

Is there any way to support IPV6 with common-vfs2 for ftp or cifs

I want to fetch files with FTP or CIFS protocol in IPV6 network env, but I find that common-vfs2 does not support IPV6. Is there any way to resolve that? Or any replaced Jar for common-vfs2 Thanks a lot
Alex
  • 93
  • 1
  • 5
2
votes
0 answers

Why my SQLite3 query takes time?

Context: I developed a Read-Only VFS for SQLite using the C API. The thing is what I need is both speed and small file size. I solved the size problem with a LZ4 based VFS. However I have some speed issues when I query my DB. Specifications: - I…
user1120168
  • 231
  • 1
  • 2
  • 5
2
votes
0 answers

Why simple_rename() does nothing in ramfs?

Linux ramfs uses simple_rename(), but why in such function the new_dentry and old_inode are not linked to each other? Here is the source code of simple_rename() for your reference: int simple_rename(struct inode *old_dir, struct dentry *old_dentry, …
basicthinker
  • 308
  • 3
  • 7