Skip to content

Commit b9c6cdc

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: update a few comments in uapi/linux/blkpg.h
The big top of the file comment talk about grand plans that never happened, so remove them to not confuse the readers. Also mark the devname and volname fields as ignored as they were never used by the kernel. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent f8b78ca commit b9c6cdc

1 file changed

Lines changed: 2 additions & 26 deletions

File tree

include/uapi/linux/blkpg.h

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22
#ifndef _UAPI__LINUX_BLKPG_H
33
#define _UAPI__LINUX_BLKPG_H
44

5-
/*
6-
* Partition table and disk geometry handling
7-
*
8-
* A single ioctl with lots of subfunctions:
9-
*
10-
* Device number stuff:
11-
* get_whole_disk() (given the device number of a partition,
12-
* find the device number of the encompassing disk)
13-
* get_all_partitions() (given the device number of a disk, return the
14-
* device numbers of all its known partitions)
15-
*
16-
* Partition stuff:
17-
* add_partition()
18-
* delete_partition()
19-
* test_partition_in_use() (also for test_disk_in_use)
20-
*
21-
* Geometry stuff:
22-
* get_geometry()
23-
* set_geometry()
24-
* get_bios_drivedata()
25-
*
26-
* For today, only the partition stuff - aeb, 990515
27-
*/
285
#include <linux/compiler.h>
296
#include <linux/ioctl.h>
307

@@ -52,9 +29,8 @@ struct blkpg_partition {
5229
long long start; /* starting offset in bytes */
5330
long long length; /* length in bytes */
5431
int pno; /* partition number */
55-
char devname[BLKPG_DEVNAMELTH]; /* partition name, like sda5 or c0d1p2,
56-
to be used in kernel messages */
57-
char volname[BLKPG_VOLNAMELTH]; /* volume label */
32+
char devname[BLKPG_DEVNAMELTH]; /* unused / ignored */
33+
char volname[BLKPG_VOLNAMELTH]; /* unused / ignore */
5834
};
5935

6036
#endif /* _UAPI__LINUX_BLKPG_H */

0 commit comments

Comments
 (0)