Skip to content

Tag: filesystems

Polling for readiness file

I work on Linux. How to know that a gzip file is ready? I have a server that polls files in directory /dir/. There is an another, independent process that gzip files to /dir/. How can my server know that file is ready? Answer There is no ready-made solution for this. Looking at the last modification timestamp…

Get filesystem creation date in C

I need to know the creation datetime of the filesystem on a disk (in a Linux machine) with C. I would like to avoid using shell commands, such as and make a parser. Thanks Answer From a program coded in C (or in any language capable of calling C routines) you would use the stat(2) system call (or, with recent

where is the __init function of ext4?

As every module that is to be inserted in the kernel needs an __init function. where can I find the __init function of the original ext4 module written by linus torvalds? I want to make some changes in it. Answer I suppose you’re looking for this method : https://github.com/torvalds/linux/blob/master/fs…