forked from pool/util-linux
This commit is contained in:
parent
46436eb582
commit
0719523b9a
13
util-linux-2.13-mount_create_mtab.patch
Normal file
13
util-linux-2.13-mount_create_mtab.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: util-linux-ng-2.13rc2+git20070725/mount/mount.c
|
||||||
|
===================================================================
|
||||||
|
--- util-linux-ng-2.13rc2+git20070725.orig/mount/mount.c
|
||||||
|
+++ util-linux-ng-2.13rc2+git20070725/mount/mount.c
|
||||||
|
@@ -546,7 +546,7 @@ create_mtab (void) {
|
||||||
|
char *extra_opts;
|
||||||
|
parse_opts (fstab->m.mnt_opts, &flags, &extra_opts);
|
||||||
|
mnt.mnt_dir = "/";
|
||||||
|
- mnt.mnt_fsname = canonicalize (fstab->m.mnt_fsname);
|
||||||
|
+ mnt.mnt_fsname = fsprobe_get_devname(fstab->m.mnt_fsname);
|
||||||
|
mnt.mnt_type = fstab->m.mnt_type;
|
||||||
|
mnt.mnt_opts = fix_opts_string (flags, extra_opts, NULL);
|
||||||
|
mnt.mnt_freq = mnt.mnt_passno = 0;
|
55
util-linux-2.13-schedutils_error_handling.patch
Normal file
55
util-linux-2.13-schedutils_error_handling.patch
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
Original patch from Bernhard Voelker.
|
||||||
|
|
||||||
|
Index: util-linux-ng-2.13rc2+git20070725/schedutils/ionice.c
|
||||||
|
===================================================================
|
||||||
|
--- util-linux-ng-2.13rc2+git20070725.orig/schedutils/ionice.c
|
||||||
|
+++ util-linux-ng-2.13rc2+git20070725/schedutils/ionice.c
|
||||||
|
@@ -107,7 +107,7 @@ int main(int argc, char *argv[])
|
||||||
|
case 'h':
|
||||||
|
default:
|
||||||
|
usage();
|
||||||
|
- exit(0);
|
||||||
|
+ exit(EXIT_SUCCESS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -125,7 +125,7 @@ int main(int argc, char *argv[])
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
printf("bad prio class %d\n", ioprio_class);
|
||||||
|
- return 1;
|
||||||
|
+ exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!set) {
|
||||||
|
@@ -134,9 +134,10 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
|
ioprio = ioprio_get(IOPRIO_WHO_PROCESS, pid);
|
||||||
|
|
||||||
|
- if (ioprio == -1)
|
||||||
|
+ if (ioprio == -1) {
|
||||||
|
perror("ioprio_get");
|
||||||
|
- else {
|
||||||
|
+ exit(EXIT_FAILURE);
|
||||||
|
+ } else {
|
||||||
|
ioprio_class = ioprio >> IOPRIO_CLASS_SHIFT;
|
||||||
|
if (ioprio_class != IOPRIO_CLASS_IDLE) {
|
||||||
|
ioprio = ioprio & 0xff;
|
||||||
|
@@ -147,11 +148,15 @@ int main(int argc, char *argv[])
|
||||||
|
} else {
|
||||||
|
if (ioprio_set(IOPRIO_WHO_PROCESS, pid, ioprio | ioprio_class << IOPRIO_CLASS_SHIFT) == -1) {
|
||||||
|
perror("ioprio_set");
|
||||||
|
- return 1;
|
||||||
|
+ exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
- if (argv[optind])
|
||||||
|
+ if (argv[optind]) {
|
||||||
|
execvp(argv[optind], &argv[optind]);
|
||||||
|
+ /* execvp should never return */
|
||||||
|
+ perror("execvp");
|
||||||
|
+ exit(EXIT_FAILURE);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 24 14:09:19 CEST 2007 - mkoenig@suse.de
|
||||||
|
|
||||||
|
- avoid duplicates of root fs if defined with LABEL in fstab
|
||||||
|
[#297959]
|
||||||
|
- fix ionice error handling [#301675]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 16 18:34:30 CEST 2007 - ssommer@suse.de
|
Thu Aug 16 18:34:30 CEST 2007 - ssommer@suse.de
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ License: BSD 3-Clause, GPL v2 or later
|
|||||||
Group: System/Base
|
Group: System/Base
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Version: 2.12r+2.13rc2+git20070725
|
Version: 2.12r+2.13rc2+git20070725
|
||||||
Release: 8
|
Release: 12
|
||||||
%define upver 2.13rc2+git20070725
|
%define upver 2.13rc2+git20070725
|
||||||
Summary: A collection of basic system utilities
|
Summary: A collection of basic system utilities
|
||||||
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/%name-ng-%upver.tar.bz2
|
Source: ftp://ftp.kernel.org/pub/linux/utils/util-linux/%name-ng-%upver.tar.bz2
|
||||||
@ -69,6 +69,8 @@ Patch38: util-linux-2.12r-mount_swapon_swsuspend_resume.patch
|
|||||||
Patch45: util-linux-2.13-sys_utils_build_rdev_x86_64.patch
|
Patch45: util-linux-2.13-sys_utils_build_rdev_x86_64.patch
|
||||||
# 297172 - mount does not free loop devices if it fails
|
# 297172 - mount does not free loop devices if it fails
|
||||||
Patch46: util-linux-2.13-loop.patch
|
Patch46: util-linux-2.13-loop.patch
|
||||||
|
Patch47: util-linux-2.13-mount_create_mtab.patch
|
||||||
|
Patch48: util-linux-2.13-schedutils_error_handling.patch
|
||||||
##
|
##
|
||||||
## adjtimex
|
## adjtimex
|
||||||
##
|
##
|
||||||
@ -113,6 +115,8 @@ Authors:
|
|||||||
#%patch38 -p1
|
#%patch38 -p1
|
||||||
%patch45 -p1
|
%patch45 -p1
|
||||||
%patch46 -p1
|
%patch46 -p1
|
||||||
|
%patch47 -p1
|
||||||
|
%patch48 -p1
|
||||||
#
|
#
|
||||||
cd adjtimex-*
|
cd adjtimex-*
|
||||||
%patch50 -p1
|
%patch50 -p1
|
||||||
@ -553,6 +557,10 @@ fi
|
|||||||
#%endif
|
#%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 24 2007 - mkoenig@suse.de
|
||||||
|
- avoid duplicates of root fs if defined with LABEL in fstab
|
||||||
|
[#297959]
|
||||||
|
- fix ionice error handling [#301675]
|
||||||
* Thu Aug 16 2007 - ssommer@suse.de
|
* Thu Aug 16 2007 - ssommer@suse.de
|
||||||
- free loop devices when mount fails [#297172]
|
- free loop devices when mount fails [#297172]
|
||||||
* Wed Jul 25 2007 - mkoenig@suse.de
|
* Wed Jul 25 2007 - mkoenig@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user