All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: update a few comments in uapi/linux/blkpg.h
@ 2021-04-02 17:17 Christoph Hellwig
  2021-04-02 17:19 ` Jens Axboe
  2021-04-04 23:38 ` Damien Le Moal
  0 siblings, 2 replies; 3+ messages in thread
From: Christoph Hellwig @ 2021-04-02 17:17 UTC (permalink / raw)
  To: axboe; +Cc: linux-block

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>
---
 include/uapi/linux/blkpg.h | 28 ++--------------------------
 1 file changed, 2 insertions(+), 26 deletions(-)

diff --git a/include/uapi/linux/blkpg.h b/include/uapi/linux/blkpg.h
index ac6474e4f29d5a..d0a64ee97c6df0 100644
--- a/include/uapi/linux/blkpg.h
+++ b/include/uapi/linux/blkpg.h
@@ -2,29 +2,6 @@
 #ifndef _UAPI__LINUX_BLKPG_H
 #define _UAPI__LINUX_BLKPG_H
 
-/*
- * Partition table and disk geometry handling
- *
- * A single ioctl with lots of subfunctions:
- *
- * Device number stuff:
- *    get_whole_disk()		(given the device number of a partition,
- *                               find the device number of the encompassing disk)
- *    get_all_partitions()	(given the device number of a disk, return the
- *				 device numbers of all its known partitions)
- *
- * Partition stuff:
- *    add_partition()
- *    delete_partition()
- *    test_partition_in_use()	(also for test_disk_in_use)
- *
- * Geometry stuff:
- *    get_geometry()
- *    set_geometry()
- *    get_bios_drivedata()
- *
- * For today, only the partition stuff - aeb, 990515
- */
 #include <linux/compiler.h>
 #include <linux/ioctl.h>
 
@@ -52,9 +29,8 @@ struct blkpg_partition {
 	long long start;		/* starting offset in bytes */
 	long long length;		/* length in bytes */
 	int pno;			/* partition number */
-	char devname[BLKPG_DEVNAMELTH];	/* partition name, like sda5 or c0d1p2,
-					   to be used in kernel messages */
-	char volname[BLKPG_VOLNAMELTH];	/* volume label */
+	char devname[BLKPG_DEVNAMELTH];	/* unused / ignored */
+	char volname[BLKPG_VOLNAMELTH];	/* unused / ignore */
 };
 
 #endif /* _UAPI__LINUX_BLKPG_H */
-- 
2.30.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: update a few comments in uapi/linux/blkpg.h
  2021-04-02 17:17 [PATCH] block: update a few comments in uapi/linux/blkpg.h Christoph Hellwig
@ 2021-04-02 17:19 ` Jens Axboe
  2021-04-04 23:38 ` Damien Le Moal
  1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2021-04-02 17:19 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-block

On 4/2/21 11:17 AM, Christoph Hellwig wrote:
> 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.

22 years later... Thanks, applied.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: update a few comments in uapi/linux/blkpg.h
  2021-04-02 17:17 [PATCH] block: update a few comments in uapi/linux/blkpg.h Christoph Hellwig
  2021-04-02 17:19 ` Jens Axboe
@ 2021-04-04 23:38 ` Damien Le Moal
  1 sibling, 0 replies; 3+ messages in thread
From: Damien Le Moal @ 2021-04-04 23:38 UTC (permalink / raw)
  To: Christoph Hellwig, axboe; +Cc: linux-block

On 2021/04/03 2:19, Christoph Hellwig wrote:
> 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>
> ---
>  include/uapi/linux/blkpg.h | 28 ++--------------------------
>  1 file changed, 2 insertions(+), 26 deletions(-)
> 
> diff --git a/include/uapi/linux/blkpg.h b/include/uapi/linux/blkpg.h
> index ac6474e4f29d5a..d0a64ee97c6df0 100644
> --- a/include/uapi/linux/blkpg.h
> +++ b/include/uapi/linux/blkpg.h
> @@ -2,29 +2,6 @@
>  #ifndef _UAPI__LINUX_BLKPG_H
>  #define _UAPI__LINUX_BLKPG_H
>  
> -/*
> - * Partition table and disk geometry handling
> - *
> - * A single ioctl with lots of subfunctions:
> - *
> - * Device number stuff:
> - *    get_whole_disk()		(given the device number of a partition,
> - *                               find the device number of the encompassing disk)
> - *    get_all_partitions()	(given the device number of a disk, return the
> - *				 device numbers of all its known partitions)
> - *
> - * Partition stuff:
> - *    add_partition()
> - *    delete_partition()
> - *    test_partition_in_use()	(also for test_disk_in_use)
> - *
> - * Geometry stuff:
> - *    get_geometry()
> - *    set_geometry()
> - *    get_bios_drivedata()
> - *
> - * For today, only the partition stuff - aeb, 990515
> - */
>  #include <linux/compiler.h>
>  #include <linux/ioctl.h>
>  
> @@ -52,9 +29,8 @@ struct blkpg_partition {
>  	long long start;		/* starting offset in bytes */
>  	long long length;		/* length in bytes */
>  	int pno;			/* partition number */
> -	char devname[BLKPG_DEVNAMELTH];	/* partition name, like sda5 or c0d1p2,
> -					   to be used in kernel messages */
> -	char volname[BLKPG_VOLNAMELTH];	/* volume label */
> +	char devname[BLKPG_DEVNAMELTH];	/* unused / ignored */
> +	char volname[BLKPG_VOLNAMELTH];	/* unused / ignore */

Nit: to be consistent with the line above: s/ignore/ignored

>  };
>  
>  #endif /* _UAPI__LINUX_BLKPG_H */
> 


-- 
Damien Le Moal
Western Digital Research

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-04 23:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-02 17:17 [PATCH] block: update a few comments in uapi/linux/blkpg.h Christoph Hellwig
2021-04-02 17:19 ` Jens Axboe
2021-04-04 23:38 ` Damien Le Moal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.