Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 384926a0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "block: Expose IOCTL to get partition start sector number"

parents e28feb3a e959c1ce
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -564,6 +564,8 @@ int blkdev_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
		if ((size >> 9) > ~0UL)
			return -EFBIG;
		return put_ulong(arg, size >> 9);
	case BLKGETSTPART:
		return put_ulong(arg, bdev->bd_part->start_sect);
	case BLKGETSIZE64:
		return put_u64(arg, i_size_read(bdev->bd_inode));
	case BLKTRACESTART:
+1 −0
Original line number Diff line number Diff line
@@ -226,6 +226,7 @@ struct fsxattr {
#define BLKSECDISCARD _IO(0x12,125)
#define BLKROTATIONAL _IO(0x12,126)
#define BLKZEROOUT _IO(0x12,127)
#define BLKGETSTPART _IO(0x12, 128)

#define BMAP_IOCTL 1		/* obsolete - kept for compatibility */
#define FIBMAP	   _IO(0x00,1)	/* bmap access */