9,652
questions
-1
votes
0
answers
19
views
File system and file format for SD card logging on embedded device [closed]
We need data logging on a SD card from a STM32 micro-controller with the following requirements
Logging frequency: Once in 5s
Logging size: can vary between 100 to 1000 bytes
Memory: SD card
Duration ...
-2
votes
1
answer
45
views
Determine legality of a path using std::filesystem under Windows?
In C++20, is it possible to check the legality of a path using std::filesystem under Windows?
By "legality", I mean whether the path contains any "forbidden" characters, is too ...
0
votes
0
answers
57
views
C++ server/client application: robust communication through NFS
I have an C++ application client/server which communicates through NFS filesystem on two different machines.
The server appends the messages it wants to send in a file (messages.txt) and creates a ...
-2
votes
0
answers
34
views
How to give permission to folder while uploading new file?
Trying to upload an file to public /storage directory and getting an error
fopen(filePath): failed to open stream: Permission denied
This is the code for file upload
$filePath = $folder.$filePath;
...
0
votes
0
answers
25
views
How are /dev/block/dm partitions determined on Android [closed]
I was looking through my android device's partitions and noticed that the root directory '/' is mapped to '/dev/block/dm-5'.
Cold starting and rebooting the device did not influence this partition ...
-1
votes
0
answers
42
views
How to store users walking race coordinates efficently?
I need to create an ASP .NET Core Web API that permits to store users walking race sessions. So there is a frontend that permits users to start and stop a walking race session (something like Strava).
...
1
vote
0
answers
48
views
SOLVED: FUSE does not call the readdir callback I provided in fuse_operations
I've been trying to write a custom filesystem with fuse and I've run into a little problem. I noticed that ls didn't work. It always failed with an error that said Function not implemented. After ...
-2
votes
0
answers
15
views
Does formatting a pen drive create any specific file on the drive? [closed]
I recently encountered a question during a technical interview that left me uncertain. The interviewer asked if any specific file is created when formatting a pen drive. My understanding is that no ...
0
votes
0
answers
40
views
C++ Filesystem Not Working in VSCode with g++ 13.2: No Output or Errors
Im trying to write an app to count the number of lines, characters etc. in a directory, in order to do that i need to get the path and for that i was plannning on using the c++ filesystem, sadly it is ...
0
votes
1
answer
25
views
wal_init_zero in PostgreSQL
In the original CL here, author mentioned a discussion linked here. However, this discussion seems to focus mainly on the allowance for disabling WAL recycling. Is this the correct discussion, or is ...
0
votes
0
answers
38
views
Why did my local Git repository get damaged when I changed my system from Ubuntu 22.04 to Windows 10
I'm using Ubuntu 22.04 (Linux-to-go) and Windows 10 on my desktop.
Everything was working fine until I reinstalled Windows 10 on a new SSD (because my previous system SSD had developed bad blocks).
...
0
votes
0
answers
53
views
Android: Deleting files in Documents turn to be hidden instead
Android Version 13.
I store my Debug files in the internal Public Documents directory (Documents/Appname/Debug/).
When I manually deleted these files with a File Manager, my App got Access Denied ...
0
votes
0
answers
65
views
Is there a way to find out the path from getApplicationInfo().nativeLibraryDir of another app?
Android API provides getApplicationInfo().nativeLibraryDir to find out an app's /data/app lib path, as explained in previous questions How to get the path to the lib folder for an installed package or ...
0
votes
1
answer
86
views
resize2fs No such file or directory while opening
I'm having a simple trouble updating my block storage using resize2fs.
The error message sounds quite simple and straight forward, but I have no clue to solve this problem.
$ kubectl exec -it es-prod-...
0
votes
1
answer
23
views
Searching for specific string in a folder system
So I have a folder system in Windows with a bunch of files with php. I am trying to find all the times a specific string/variable is used in the files but I dont want to go through each file and CTR-F ...
0
votes
1
answer
79
views
"filesystem error: cannot increment recursive directory iterator: Permission denied" on 0777 directory
My code looks like this:
auto const dir = std::filesystem::path(...);
std::error_code ec (0, std::generic_category());
try {
for (auto const& inner_entry : std::filesystem::...
0
votes
0
answers
15
views
Using Alpine Linux Image in Docker file and getting npm error errno EACCES
We are using Alpine Linux Image in Docker file and getting npm error errno EACCES
Exact error message is
npm error errno EACCES
npm error
npm error Your cache folder contains root-owned files, due to ...
2
votes
1
answer
97
views
Why can't filesystems provide direct access to the physical sector allocations (extents/groups) of a file?
I'm working on a database project where I need to write to both a data.bin file (for storing data) and a metadata file. I'm running into an issue with the overhead caused by filesystem metadata ...
1
vote
0
answers
43
views
Is it possible to set ACL permissions for Boost.Interprocess managed_shared_memory? If not, how can I achieve this?
I'm using the Boost.Interprocess library in C++ to manage shared memory using the managed_shared_memory class. I am creating the shared memory segment with the open_or_create flag and specifying ...
-1
votes
0
answers
29
views
How do you use JavaScript file system API to read and write to a file?
I want to edit a text file on my website, but I don't have a PHP server. I want to use the file path instead of a file selector to read and write to the text file. The text file is on the website, not ...
0
votes
0
answers
41
views
Understanding File Access in Databricks File System (DBFS) versus Volumes with Python and Spark
I am currently trying to read and display a file from the Databricks File System (DBFS), but I encountered an issue. Here is the code I was using:
file_path = "/dbfs/cluster-logs/use_case/...
1
vote
2
answers
122
views
Is it possible to read an executable and run it without writing it into another file?
I want something like where i have an executable and I can read that executable and I am able to read and store it into some variable and than with some interaction with that variable I can run the ...
0
votes
0
answers
31
views
Read .js file content in React component
I have a React component that displays and Iframe and I'm inserting into this Iframe <script> element:
const iframe = ref?.current;
const iframeWindow = iframe?.contentWindow;
const ...
1
vote
0
answers
26
views
Integrate range lock into file system
I’m working on an implementation of concurrent range lock. It provides 2 methods:
Lock: locks a range [start, end] if it is not existed or overlapped
Unlock: unlock a range
How can I integrate this ...
1
vote
0
answers
17
views
Issues with Setting Alternate Data Streams (ADS) in VB.NET for a Windows Service
I am developing a Windows Service in VB.NET that copies files and directories from one location to another. To avoid copying the same files multiple times, I am using Alternate Data Streams (ADS) to ...
2
votes
0
answers
51
views
Good way to understand if file has been just created rather than modified in Linux
I need a way to learn if a file has been just created (rather than e.g. modified). I do it like this:
const bool isCreated =
((f.atime.tv_sec == f.mtime.tv_sec) &&
...
0
votes
1
answer
28
views
Confused by Linux File Times
I am writing some code to manage file times (atime, ctime, and mtime) for a LittleFS file system. In my desire to make this somewhat Linux/Posix like I ran into questions as to when these times are ...
0
votes
1
answer
28
views
FAT12 cluster chain just stops, can't tell what's going on
I'm working on a FAT12 driver for my OS (you can find the driver here) but I've run into a very strange roadblock, that I don't know is with my code or the driver.
I have a file called long.txt that ...
-1
votes
1
answer
29
views
System.IO.Abstraction: Autofac.Core.DependencyResolutionException: 'An error occurred during the activation of a particular registration
Background
I started using the NuGet package System.IO.Abstractions to unit-test File methods (File.Exists(), File.OpenRead(), File.Move(), etc.). I installed the NuGet in both the unit test project ...
0
votes
1
answer
87
views
Where are pictures saved when opening the camera from iOS webview?
I have a react native app which uses react-native-webview 13.10.3 (which uses WKWebview on iOS). Sometimes the page in the webview contains an <input type="file"> which, on click, ...
-1
votes
1
answer
36
views
Is there something that caches deleted files for a period of time on the drive? [closed]
I am having problems determining the creation time of a file.
When I copy a file from one folder to another and delete the original file, the copy gets a new created date. If I copy the copy back to ...
0
votes
2
answers
90
views
Is there a simple basic way to navigate the file system in emacs avoiding dired?
I have been trying to find a way to do simple file-system navigation as can be done using most command line interfaces such as
cd sourcetext
To change the current directory to one of its ...
0
votes
0
answers
19
views
How to atomically exchange an executable that could be invoked at any time
We have a service on our server that is triggered by a cronjob quite frequently. Now we want to update this application to a new version.
How can we do so without risking the application to be in an ...
1
vote
0
answers
30
views
Read from disk using C kernel ATA Qemu
I am making a simple OS, and I want to read letters from disk in C kernel and display them on screen, I am using x86 SeaBIOS on Qemu emulator on M1 Mac. I save data using ata_write(1, 1, data) and ...
0
votes
0
answers
65
views
Windows Overlapped I/O with IOCP and FILE_FLAG_NO_BUFFERING is exceptionally slow in random 4K scenario
I am developing an asynchronous I/O framework for Windows LLM inference. Suppose I have 8 threads executing computation tasks. When a computation task finds that the required neurons for the next ...
0
votes
0
answers
40
views
AWS EC2 : error expanding EBS XFS partition
I need to expand the /home partition in my AWS EC2 instance. I have already added the required storage and trying to follow the article : https://docs.aws.amazon.com/ebs/latest/userguide/recognize-...
2
votes
10
answers
210
views
How to get the mounted point full path while it has space in bash
I have an UBUNTU installation USB disk.
The disk name is "UBUNTU 22_0" and will be mounted on "/run/media/UBUNTU 22_0-sda1".
There is a space on it so the command "df | grep /...
0
votes
0
answers
46
views
How do I set the source of MediaPlayerElement to a file on an Android device in the Uno Platform?
I am trying, in the Uno Platform using C#, to set the source of my MediaPlayerElement to a file picked by a FileOpenPicker. I have successfully retrieved the resulting file path of the picked file as ...
0
votes
0
answers
82
views
How to get FileSystemDirectoryHandle using a FileSystemFileHandle
I am trying to select a file using showOpenFilePicker and once a file is selected, I want to get the directory(FileSystemDirectoryHandle) of where the selected file is located. I want to get the ...
-1
votes
1
answer
61
views
how to display a pdf in iframe from a private disk storage in Laravel 11?
how to display a pdf in iframe from a private disk storage in Laravel 11?
'private' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'...
0
votes
2
answers
35
views
How to read just one line from a TXT file?
I'm creating a Wordle-like game and I need to create a dictionary in a TXT file. At the moment I'm just using a vector in my script.js file.
The idea is to have one word on each line like this:
ANGEL
...
6
votes
3
answers
201
views
How to know if the filesystem supports sparse file programmatically
Java NIO provides us the option to create sparse files
val path = Path("""E:\a""")
val fileChannel = FileChannel.open(
path,
StandardOpenOption....
0
votes
0
answers
30
views
Are write syscalls atomic?
Are write sys calls in Linux atomic?
There are a few situations I am curious about learning:
Partial writes: If I were to invoke the write(fd, buf, nbytes) syscall, is it possible for only part of ...
1
vote
0
answers
63
views
FUSE high-level ioctl function receiving null parameters
Working on a FUSE filesystem. When implementing the ioctl handler both of these parameters seem to be NULL no matter what I do. I'm unsure if I'm misunderstanding what the paramters represent or ...
0
votes
0
answers
33
views
How to read program files' content in NodeJS
My goal is to make an array of file content from a directory. The directory can resemble a project with source code like Python, JS, etc. So far I have it loop through an array of every file in the ...
0
votes
0
answers
206
views
How unity redirect full path of packages folder?
This question is not specific to unity game engine itself, but there is a behaviour of unity application that, in the editor process, whenever we use any System.IO api such as Path.GetFullPath or File....
0
votes
0
answers
20
views
how to extract and modify an XFS file
I'm currently trying to modify a firmware of an electric car from china. I have the firmware unpacked and it contains images (I suppose?) of it's partitions. All of them are *.XFS I need to extract ...
-1
votes
1
answer
48
views
File metadata modified timestamp returning different values in consecutive calls
I have an library I'm implementing that writes some data to a file and records the timestamp. It then checks the timestamp of the written file to see if it has been updated externally. But one of the ...
0
votes
1
answer
63
views
Node fs file does not exist
I have the following code to read a file in my project with Node fs.
const files: FileSystemTree = {
"Component.tsx": {
file: {
contents: fs.readFileSync(
...
1
vote
1
answer
72
views
virtual hard disk - ata pio & saving state of hard drive, write operations in the same place
I'm writing an operating system. I'm developing my code in linux mint and running it on a qemu virtual machine.
I'm currently developing a file system and for that purpose I first need to initialize ...