I'm looking for, essentially, the ext4 equivalent of mremap().
I have a big mmap()'d file that I'm allocating arrays in, and the arrays need to grow. So I want to make the first array larger at its current location, and budge all the other arrays…
Question
How can I update a file atomically without requiring my program to wait for slow physical media (such as with fsync)?
My hope is that the OS could "buffer" the typical fsync and rename operations in RAM, and then write them to disk in the…
I intend to set some capabilities on binaries included in a Yocto image using "setcap". For some reason the solutions mentioned here did not work for me:
Linux capabilities with yocto
. I have checked that by running "getcap" on my binary within the…
I'm seeing some strange behaviour with the timestamp reported by Perl's Time::HiRes module.
I have a script that gets three timestamps:
Get timestamp with Time::HiRes::time
Create a new file, and get its modification time with Time::HiRes::stat
Get…
Assume we have a file of FILE_SIZE bytes, and:
FILE_SIZE <= min(page_size, physical_block_size);
file size never changes (i.e. truncate() or append write() are never performed);
file is modified only by completly overwriting its contents…
is there any userspace API or third-party kernel module that can help to access file by inode on Linux?
I'm trying to implement something like:
int read_file_by_ino(int ino, int pos, int size, char* buf);
int write_file_by_ino(int ino, int pos, int…
I have a development tree on a Linux Ubuntu 14.04-LTS machine like this, with three identical branches:
main -+-- leonardo --- project --- htdocs -+- panel --- index.php
| |
| …
I have a SATA hard disk with write cache disabled:
hdparm -W0 /dev/foo
I am operating on an ext4 partition with these mount options (amongst others):
data=ordered
auto_da_alloc
Linux kernel version is 2.6.32-5-686.
Now, I have an external program…
Suppose to have the following scenario, on a linux system:
An ext4 data partition mounted as Read-Only: data_ro
An overlay partition: data_overlay
The two of them union-mounted using UnionFS: mount -t overlayfs -o…
If I am not wrong, than with triple indirect addressing, the maximum file size for ext3 would be (4G+4M+4K).
Likewise, what will be the the maximum file size for an ext4 FS using extents if we assume a 4KB disk block size?
Recently i installed Ubuntu 13.04 and allocated 20 GB for it. The system got installed space less than 10 GB. Now, can i shrink it to 10 GB without formatting it?
Thats to say, i don't want to have large empty space in the partition.
This may sound noobish, especially as I'm ( as you may have guessed ) trying to write an Operating System. At the moment I'm stuck on trying to make a file system.
What I want is a similar file system as Linux Ubuntu which is EXT4 ( at least mine is…
I have been researching the differences between File, Block and Object storage. I've tried to relate the native Linux File System with one of these types of storing data, however, some doubts that come to my mind make me evidence that I have some…
I have a 20.04 ext4 installation (successful upgrade from 19.10!) and am just wondering about the above.
One caveat I can think of is /etc/fstab and some other things may be somewhat different for ZFS root and so should probably not be transferred…