---
name: "bmap"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bmap/9"
---

# bmap(9)

find a block number in a file

## NAME

bmap - find a block number in a file

## SYNOPSIS

**sector\_t bmap(struct inode \*** *inode***, sector\_t** *block***);**

## ARGUMENTS

*inode*

inode of file

*block*

block to find

## DESCRIPTION

Returns the block number on the device holding the inode that is the disk block number for the block of the file requested. That is, asked for block 4 of inode 1 the function will return the disk block relative to the disk start that holds that block of the file.

## COPYRIGHT
