Project

General

Profile

Actions

Submit #2873

closed

[PATCH] fdisk cleanups

Added by Anonymous over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Userland
Target version:
Start date:
12/24/2015
Due date:
% Done:

0%

Estimated time:

Description

This patch provides set of cleanups for the sbin/fdisk util.

1. MBRSIGOFF macro removed. Use the DOSMAGICOFFSET macro instead
which is already defined in the <sys/diskmbr.h>.

2. Global variable iotest removed. It was used in the write_sr0()
function before. We checked this variable and it it was set we
just printed information about zero sector and exited from the
write_sr0(). Actually, this variable wasn't set never and never
used anywhere. For this point we already have the `-t` flag
which prevents writing of sector 0.

3. Unused macros removed.

4. Unused functions removed.

5. MAX_SECTORS_PER_TRACK and MIN_SECTORS_PER_TRACK macros are added.

6. Fixed order of DIOCWLABEL ioctl in the write_sr0().

7. Indentation fixed.


Files

0001-sbin-fdisk.patch (10.9 KB) 0001-sbin-fdisk.patch Anonymous, 12/24/2015 05:33 AM
Actions #1

Updated by swildner over 8 years ago

  • Status changed from New to Closed

I've pushed it. Thanks.

Actions

Also available in: Atom PDF