Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update inode.c #863

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update inode.c #863

wants to merge 1 commit into from

Conversation

Okan-tumuklu
Copy link

/*

  • This function, adfs_get_block, is responsible for retrieving the block data
  • within an ADFS (Acorn Disk File System) inode. It checks whether the block
  • exists and maps it to a buffer head for further processing. *
  • Parameters:
    • inode: Pointer to the inode structure representing the file.
    • block: The block number to retrieve.
    • bh: Pointer to the buffer head structure to map the block data.
    • create: Boolean flag indicating whether block allocation is allowed.
  • Return Values:
    • Returns 0 on success, indicating that the block data has been successfully mapped.
    • Returns -EFBIG if the provided block number exceeds the inode's block count, indicating an invalid block number.
    • Returns -EIO if there is an error during the block mapping process, indicating a mapping error.
    • Returns -EOPNOTSUPP if block allocation is not supported, indicating that block allocation is not yet implemented.
      */

/*
 * This function, adfs_get_block, is responsible for retrieving the block data
 * within an ADFS (Acorn Disk File System) inode. It checks whether the block
 * exists and maps it to a buffer head for further processing.
 *
 * Parameters:
 *   - inode: Pointer to the inode structure representing the file.
 *   - block: The block number to retrieve.
 *   - bh: Pointer to the buffer head structure to map the block data.
 *   - create: Boolean flag indicating whether block allocation is allowed.
 *
 * Return Values:
 *   - Returns 0 on success, indicating that the block data has been successfully mapped.
 *   - Returns -EFBIG if the provided block number exceeds the inode's block count, indicating an invalid block number.
 *   - Returns -EIO if there is an error during the block mapping process, indicating a mapping error.
 *   - Returns -EOPNOTSUPP if block allocation is not supported, indicating that block allocation is not yet implemented.
 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants