diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-02-18 00:58:35 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-02-18 00:58:35 +0100 |
commit | 49a086299e047b18280457b654790ef4a2e5abfa (patch) | |
tree | c2b29e0734d560ce4f58c6945390650b5cac8a1b /open_issues/blkrrpart_ioctl.mdwn | |
parent | e2b3602ea241cd0f6bc3db88bf055bee459028b6 (diff) | |
download | web-49a086299e047b18280457b654790ef4a2e5abfa.tar.gz web-49a086299e047b18280457b654790ef4a2e5abfa.tar.bz2 web-49a086299e047b18280457b654790ef4a2e5abfa.zip |
Revert "rename open_issues.mdwn to service_solahart_jakarta_selatan__082122541663.mdwn"
This reverts commit 95878586ec7611791f4001a4ee17abf943fae3c1.
Diffstat (limited to 'open_issues/blkrrpart_ioctl.mdwn')
-rw-r--r-- | open_issues/blkrrpart_ioctl.mdwn | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/open_issues/blkrrpart_ioctl.mdwn b/open_issues/blkrrpart_ioctl.mdwn new file mode 100644 index 00000000..b3a91bfb --- /dev/null +++ b/open_issues/blkrrpart_ioctl.mdwn @@ -0,0 +1,32 @@ +[[!meta copyright="Copyright © 2009 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled +[[GNU Free Documentation License|/fdl]]."]]"""]] + +[[!meta title="BLKRRPART IOCTL"]] + +[[!tag open_issue_glibc open_issue_hurd open_issue_gnumach]] + +Just like in other Unix systems one can, for example, use `fdisk` or `parted` +to manage hard disks' partition tables. After doing changes to a disk's +partition table, the kernel has to be instructed to reinitialize its internal +data structures: where does a partition begin, where does it end, etc. + +With `fdisk` and friends this is done on Linux with the `BLKRRPART` IOCTL, +which is used to tell the kernel to reread the disk's partition table. + +`parted` also uses this interface on Linux, but for GNU Hurd, the corresponding +function, `libparted/arch/gnu.c (gnu_disk_commit)`, doesn't do anything at all. +The infrastructure in [[GNU_Mach|microkernel/mach/gnumach]] is already there, +`linux/src/drivers/block/ide.c (ide_ioctl) <BLKRRPART>` and +`linux/src/drivers/scsi/sd_ioctl.c (sd_ioctl) <BLKRRPART>`, but the IOCTL needs +to be routed from `libparted` through [[hurd/glibc]]'s Hurd IOCTL interface, +through Hurd's [[hurd/libstore]], to [[GNU_Mach|microkernel/mach/gnumach]]. + +This is not a huge project, and actually one that is suitable for someone who +wants to start with hacking the system. |