Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to get sector numbers of a file


    We are developing Android application (Android UI and C application through JNI) and File system is ext4.

    Is there any Android API or Linux system call to find out sector numbers allocated for a file.

    Please share your ideas.

    Thanks & Regards,

  2. #2

    i'm not sure if it works for ext4, but this technique uses debugfs. it works for files on my ext3 filesystems.

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    3rd rock from sun - Often seen near moon
    You can use E2fsprogs: Ext2 Filesystem Utilities . Let me know If you need some helping hand Just curious, what's the application you are planning to do ?
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    FOSS India Award winning ext3fs Undelete tool Online Linux Terminal

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts