Tagged Questions
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.
5
votes
0answers
623 views
FSEvents file flags are set regardless of event stream creation options
According to Apple documentation, in the callback to FSEvents,
/* These flags are only set if you specified the FileEvents */
/* flags when creating the stream. */
...
4
votes
0answers
297 views
How to programmatically access iphone file system on Mac OS X via USB
I want to access iphone file system via USB like DiskAid or iExplorer programmatically
Which tool or library can I use to do that ?
I have found usbmuxd, libmobiledevice, ... but not clearly ...
3
votes
0answers
27 views
FSEvents - get PID of the process that performed the operation
On OS X, using the FSEvents API, I can easily get file and directory notifications (created, removed, etc), for paths of interest. However, I was wondering if there is any way to get the PID or name ...
3
votes
0answers
111 views
android file.renameTo changes subdir names
I'm having a very strange problem around renaming folders in android and then reading the file again. I could never reproduce this on any or our local test devices and no one I know had a good idea.
...
3
votes
0answers
92 views
Are there any distributed high-availability filesystems (for Linux) that are actively-developed?
Are there any distributed, high-availability filesystems (for Linux) that are actively-developed?
Let me be more specific:
Distributed means it deals gracefully with client-to-server latencies like ...
3
votes
0answers
66 views
How do I give a C# COM object full filesystem access?
I have a COM object written in C#, and loaded from native code via COM. To fulfill its job, it needs full filesystem access (not just under its AssemblyRoot). What is the proper way to ensure it has ...
3
votes
0answers
280 views
Btrfs mess ups. “Check tree block failed with Btrfs”
I restart my desktop and my btrfs drive was not mounting so I thought I checked it
btrfsck /dev/sdc1
Check tree block failed, want=68837376, have=1586977943489443072
Check tree block failed, ...
3
votes
0answers
283 views
Read Extended Boot Record in windows c++
I am trying to read the extended boot record. The location of the extended boot record is i suppose at the first sector from absolute start offset.
First i read the MBR (Master Boot Record) to get the ...
3
votes
0answers
442 views
Implement Change Journal in Delphi
I'm seeking to use Change Journal instead of ReadDirectoryChangesW to track changes in my delphi XE2 application (as for why: ReadDirectoryChangesW is not that reliable)
The closest I could find in ...
3
votes
0answers
386 views
How to I access a drive at the block/sector level using C#?
I am working on an embedded project where data is stored on an SD card using no filesystem (I write data to specific blocks). My embedded device provides a mass-storage interface to the device, but ...
3
votes
0answers
155 views
How can I mount a partition in the middle of a full disk image in userspace?
It is perfectly possible to mount a partition with a disk image using mount or losetup's "offset" parameter. However to mount an image in userspace without requiring root permission or setting up ...
3
votes
0answers
154 views
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 ...
2
votes
0answers
101 views
Selecting multiple files in a dart based chrome app
I was playing around with Google Dart and chrome apps. I tried to select a single file: No problem here!
The code looks like this and prints the filename.
Future<ChooseEntryResult> res = ...
2
votes
0answers
45 views
Running LevelDB on Lustre filesystem
I am running a piece of code that's based on LevelDB. It works fine in my workstation, but when I deploy it into a cluster (with Lustre file system), the program breaks with an "Invalid argument" ...
2
votes
0answers
71 views
In memory filesystem for iOS apps
I'm trying to create an in memory filesystem (like tmpfs) for iOS, or alternatively the equivalent of a Linux device mapper (i.e. have a virtual block device that I control in software). The ultimate ...
2
votes
0answers
44 views
How do I create a directory with a specific inode number?
How to create a directory in ext2/ext3/ext4 filesystem with a specific inode number?
I've seen a working answer for a file but I could not apply it to a directory. A solution based on the debugfs ...
2
votes
0answers
53 views
open a unicode name file on linux from Python
I was trying to open a file on Ubuntu in Python using:-
open('<unicode_string>', "wb")
unicode_string is '\u9879\u76ee\u7ba1\u7406'. It is a Chinese text.
But I get the following error:-
...
2
votes
0answers
26 views
How to consistently add files to a bundle in Xcode?
I'm not able to consistently add files to a bundle package. I recall once being able to drag images from one place and right into the bundle in finder, but right now, anything I try to drag into the ...
2
votes
0answers
72 views
How to get XCode to recognise .C and .H files as C++?
Currently XCode identifies .C and .H files in my project as C files and headers when selecting a syntax highlighting mode. The files are on a case sensitive file system. I would like them to be ...
2
votes
0answers
217 views
Best practice to monitor a folder in C#
I know this question is somewhat subjective, but I think it might be a valid question to ask.
I want to create a program that watches folders on a file server. The program itself runs on the server, ...
2
votes
0answers
70 views
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 ...
2
votes
0answers
275 views
How performance of reads/writes to regular file varies when linux kernel memory load becomes high?
It seems that writes/reads to regular files can't not be made non-blocking. I found the following references for support:
from The Linux Programming Interface: A Linux and UNIX System Programming ...
2
votes
0answers
108 views
Transfer symbolic links between different filesystems
I am trying to emulate the advantages of a database on my filesystem for my music collection.
For example when I have a new album I would run a script which moves the album to another folder like ...
2
votes
0answers
498 views
Retrieving ReFS integrity stream checksums
Is it possible to retrieve the checksums/hashes that ReFS creates for integrity streams? I found this document which describes a new API control code: FSCTL_GET_INTEGRITY_INFORMATION, but it seems to ...
2
votes
0answers
180 views
Storing File System Hierarchy Information in Persistence
I would like my program (written in Python) to monitor a given file system's hierarchy, record it into persistent data storage, and be able to update it when the file system changes. It might be read ...
2
votes
0answers
580 views
Listen gem and monitoring for filesystem changes
I've just come across the listen gem which watches for file system events (or polls) and can execute your ruby code when a file changes or is added.
It looks really nice, but if I need to catch any ...
2
votes
0answers
248 views
File system syncing/replicating in Java application cluster
I have the following setup:
1+ clustered instances of a client serving (custom web) application
1 instance of a system serving web application that deploys large (100 MB) files used by
the ...
2
votes
0answers
216 views
Why would Hadoop hftp serve directories but not files?
I'm trying to move files from one cluster to another using distcp, using the hftp protocol as specified in their instructions.
I can read directories over hftp, but when I attempt to get a file I get ...
2
votes
0answers
416 views
something wrong about jffs2dump change a JFFS2 file system to a little-endian file
i have a JFFS2 file system ,it's a big-endian.
my computer: x86 Linux,little-endian.
i used jffs2dump to changed my JFFS2 file to a little-endian.
eg: (# jffs2dump -c -v -b -e B070.jffs2 B070.w).
...
2
votes
0answers
436 views
ReadDirectoryChangesW File Moved Workaround
Background
Windows API for monitoring file-system changes ReadDirectoryChangesW cannot reliably report a file move operation. Instead it just notifies Deleted + Created.
Question
What workarounds ...
2
votes
0answers
353 views
Android Forensic Application
I'm working on an Android Forensic application to retrieve deleted text messages, email and call history from any Android device. I managed to extract several deleted records from sqlite database ...
2
votes
0answers
105 views
blackberry playbook no-index flag
I have a simple android application, that stores data into Android/data/{application-name} folder. It is saved in "data.xml" file.
I have converted this app for playbook. Everything works fine, ...
2
votes
0answers
1k views
Qt: How to get mounted drives
I'm writing a Qt GUI app.
I'm using QFileSystemModel for local files, and I just learned that it doesn't work with mounted drives.
Yes, I can get all currently mounted drives by calling
...
2
votes
0answers
116 views
boost filesystem blocking calls?
Is there any case where the following calls can block? e.g. due to some Windows IO conflicts (i.e. writing to file simultaneously) or something else?
recursive_directory_iterator++
file_size
...
2
votes
0answers
2k views
Is it possible to rename a sparsebundle volume label without mounting/renaming/unmounting/mounting?
I know that the following will work:
hdiutil attach old.sparsebundle -mountroot .
diskutil rename old_label new_label
hdiutil detach old_label
hdiutil attach old.sparsebundle -mountroot .
This ...
2
votes
0answers
192 views
QMediaPlayer on Meego cannot play file from qrc resource file
there are some said that QMediaPlayer cannot play file from .qrc (resource file) .
so I think there must be a workaround to play the file. I'm thinking about putting the file to the memory and play ...
2
votes
0answers
400 views
Callback File System: eldos.cbfs.ECBFSError: Access is denied
I've requested trial license for Callback File System and tried to write simple application using java! So, I've written next few lines and run it and received exception eldos.cbfs.ECBFSError: Access ...
2
votes
0answers
99 views
how to find last part of file(with size less than block size of file system) on the disk using java?
I am working on a project where I have to find the full file or the part of files stored on disk using java. Here is what i am doing
1) divide a reference file into parts(same in size of block size ...
2
votes
0answers
71 views
Determine if file IO is closed on OS X
I want to trigger an event on OS X -- could be from the command line, or Obj-C -- when IO is closed on a particular file (rather than file modified).
On linux this is easy, inotify provides ...
2
votes
0answers
460 views
Why does this loopback device creation malfunction?
At the bottom of the code you can see it failing. In fact, I'll put it here at the start too because it is the problem I need to solve:
[350591.924819] EXT4-fs (loop0): bad geometry: block count ...
2
votes
0answers
553 views
are expanded war files faster?
I'm using embedded jetty to launch a web application which I have currently packaged as a war file. At first I was trying to prevent my war file from being expanded; then I began to wonder:
Q: is ...
1
vote
0answers
49 views
+100
How to ensure that a python function generates its output based only on its input?
To generate an output a function usually uses only values of its arguments. However, there are also cases in which function, to generate its output, reads something from a file system or from a ...
1
vote
0answers
4 views
How to create a text file with a MCU and transfer it to PC via USB?
I wish to :
Collect data with my ATxmega128A4U (done)
Store that data into a text file (.txt)
Send the text file to flash storage (via SPI)
Connect the flash storage(or MCU?) to PC via USB as a Mass ...
1
vote
0answers
14 views
How to protect a folder in iOS app file system?
A colleague told me that Google's gmail iOS app used to have a protected folder a while ago. By "protected" means when he tried to browse into that folder by using iFunBox, he couldn't do it. ...
1
vote
0answers
26 views
Where in the Linux file system should I put my board voltage monitor driver?
My knowledge level
Hi I'm new to Linux and have been doing my best to read up on Linux Device Model and file systems. Sorry if I don't have the vocabulary to ask/google what I'm looking for (I come ...
1
vote
0answers
23 views
Location of GPS-data file?
I am interestes in "seeing" the GPS or location history raw-data of my rooted android device. I had a look in the the /data/gps/log/ folder and it has interestingly named files but they seem empty...
...
1
vote
0answers
102 views
Making code (more) cross platform
I am trying to make my (currently working on windows) code a bit more platform independent. This small snippet is for opening a text file (for reading/writing).
As with modern pcs many files are ...
1
vote
0answers
383 views
What docker storage driver is good for “production” use?
I have "growing disk space" issues with VFS driver. As mentioned here VFS is not used in production. May be you know what driver should I use in "production" environment?
1
vote
0answers
25 views
Is it possible to set icon for a custom file used by my app
I would like to create and app using Qt which will use custom files. The app will be available on Windows, OS X and Linux.
The idea is to have a custom icon for my file type (e.g. when you install ...
1
vote
0answers
43 views
Ext3 Block Group Descriptor
I am having a problem understanding how to find Block Group Descriptor table. In literature (D.Poirier: "The 2nd extended filesystem") is stated that block group descriptor is located in block right ...