Reputation: 63
We are developing Android application (Android UI and C application through JNI) and File system is ext4.
Is there any Linux system call or Android API to find out sector numbers allocated for a file.
Please share your ideas.
Upvotes: 1
Views: 2605
Reputation: 141
Hello you can get the file blocks and more information using stat command.
stat [OPTIONS]... FILE ...
For example you could know the info about my.cnf like this:
stat /etc/my.cnf
You can use the options to get different format sequences for files using the --help option alone.
Upvotes: 1