This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 6817 - does not reread BSD partitions
does not reread BSD partitions
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: util-linux (Show other bugs)
6.0
alpha Linux
medium Severity medium
: ---
: ---
Assigned To: Erik Troan
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-11-08 04:30 EST by henrik.nordstrom
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-02-06 16:31:55 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description henrik.nordstrom 1999-11-08 04:30:16 EST
fdisk does not tell the kernel to reread the partition table
on changes to a BSD label (BSD labels is required by the
aboot loader).

As a work-around I use the attached program, or reboot the
machine.

int main(int argc, char **argv)
{
  int fd;

  fd = open(argv[1],O_RDONLY);
  errno = 0;
  ioctl(fd,BLKRRPART);
  return errno;
}
Comment 1 Cristian Gafton 2000-02-17 18:41:59 EST
This is normal and expected behavior for a busy device - you can not invalidate
it.


*** This bug has been marked as a duplicate of 8082 ***
Comment 2 henrik.nordstrom 2000-02-18 04:06:59 EST
The device IS NOT BUSY!

fdisk does not even ask the kernel to reread the partition table when modifying
a BSD label.
Comment 3 henrik.nordstrom 2000-02-18 04:17:59 EST
BSD labels are accessed by entering b at the fdisk main menu prompt, which
causes fdisk to switch mode to BSD labels instead of DOS labels.

The same problem is also available in the minlabel utility (specific utility
only for BSD labels).
Comment 4 henrik.nordstrom 2000-02-18 04:19:59 EST
Forgot to mention the versions currently tested:

# rpm -q -f /sbin/fdisk /sbin/minlabel
util-linux-2.9w-28
minlabel-1.2-6
Comment 5 Cristian Gafton 2000-05-22 11:57:59 EDT
assigned to jbj
Comment 6 Erik Troan 2001-02-06 16:31:51 EST
This has been fixed in util-linux for quite a while.

Note You need to log in before you can comment on or make changes to this bug.