Hello community, here is the log from the commit of package parted checked in at Fri Jul 13 20:16:04 CEST 2007. -------- --- parted/parted.changes 2007-07-05 13:03:42.000000000 +0200 +++ /mounts/work_src_done/STABLE/parted/parted.changes 2007-07-13 11:39:32.000000000 +0200 @@ -1,0 +2,5 @@ +Fri Jul 13 11:38:09 CEST 2007 - olh@suse.de + +- do not open with O_DIRECT (#290087) + +------------------------------------------------------------------- New: ---- parted.no-O_DIRECT.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ parted.spec ++++++ --- /var/tmp/diff_new_pack.h24087/_old 2007-07-13 20:14:53.000000000 +0200 +++ /var/tmp/diff_new_pack.h24087/_new 2007-07-13 20:14:53.000000000 +0200 @@ -17,7 +17,7 @@ Group: System/Filesystems Summary: GNU partitioner Version: 1.8.7 -Release: 16 +Release: 19 Source0: %{name}-%{version}.tar.bz2 Patch: always-resize-part.dif Patch1: parted-type.patch @@ -30,6 +30,7 @@ Patch9: always_print_geom.diff Patch42: parted-1.8.7-linux-swap.patch Patch51: parted.tty.patch +Patch52: parted.no-O_DIRECT.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://www.gnu.org/software/parted/ PreReq: %install_info_prereq @@ -77,6 +78,7 @@ %patch8 -p1 %patch9 %patch51 -p1 +%patch52 -p1 %build #autoreconf --force --install @@ -124,6 +126,8 @@ %{_libdir}/*.so %changelog +* Fri Jul 13 2007 - olh@suse.de +- do not open with O_DIRECT (#290087) * Thu Jul 05 2007 - sassmann@suse.de - fix parted to generate parseable output (#289049) added check to test if tty is availabe, if no tty is available ++++++ parted.no-O_DIRECT.patch ++++++ --- libparted/arch/linux.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- a/libparted/arch/linux.c +++ b/libparted/arch/linux.c @@ -65,15 +65,9 @@ #define HDIO_GETGEO 0x0301 /* get device geometry */ #define HDIO_GET_IDENTITY 0x030d /* get IDE identification info */ -#if defined(O_DIRECT) && (!defined(__s390__) || !defined(__s390x__)) -#define RD_MODE (O_RDONLY | O_DIRECT) -#define WR_MODE (O_WRONLY | O_DIRECT) -#define RW_MODE (O_RDWR | O_DIRECT) -#else #define RD_MODE (O_RDONLY) #define WR_MODE (O_WRONLY) #define RW_MODE (O_RDWR) -#endif struct hd_geometry { unsigned char heads; @@ -1253,6 +1247,7 @@ _flush_cache (PedDevice* dev) fd = open (name, WR_MODE, 0); if (fd > 0) { ioctl (fd, BLKFLSBUF); + fsync (fd); close (fd); } } @@ -1315,6 +1310,7 @@ linux_close (PedDevice* dev) if (dev->dirty) _flush_cache (dev); + fsync (arch_specific->fd); close (arch_specific->fd); return 1; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org