All of lore.kernel.org
 help / color / mirror / Atom feed
* ceph v0.42 sync
@ 2012-02-26  9:54 Laszlo Boszormenyi
  2012-02-26 16:55 ` Yehuda Sadeh Weinraub
  2012-02-27  5:23 ` Sage Weil
  0 siblings, 2 replies; 7+ messages in thread
From: Laszlo Boszormenyi @ 2012-02-26  9:54 UTC (permalink / raw)
  To: ceph-devel

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

Hi,

I send some patches to make the packaging difference smaller between us.
The first, create_run_dir.patch to make /run/ceph created on every
start. Yes, it's /run as /var/run is now a symbolic link to the former.
The next is an update to control to reflect the new Standards-Version
and to make hdparm optional to sdparm, which is for sATA discs.
Then an update to rules. Adding build-arch and build-indep targets.

I ask for a clarification of version numbers. Homepage shows v0.42 as
the latest downloadable as git contains v0.42.1 and v0.42.2 tags. Are
they official and/or should I wait for v0.43 which is due to yesterday
as I know?

Regards,
Laszlo/GCS

[-- Attachment #2: ceph-control.patch --]
[-- Type: text/x-patch, Size: 1031 bytes --]

--- ceph/debian/control	2012-02-26 10:08:52.229291209 +0100
+++ ceph/debian/control	2012-02-26 10:10:04.277294925 +0100
@@ -7,11 +7,11 @@
 Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.hu>
 Uploaders: Sage Weil <sage@newdream.net>
 Build-Depends: debhelper (>= 6.0.7~), autotools-dev, autoconf, automake, libfuse-dev, libboost-dev (>= 1.34), libedit-dev, libcrypto++-dev, libtool, libexpat1-dev, libfcgi-dev, libatomic-ops-dev, libgoogle-perftools-dev [i386 amd64], pkg-config, libgtkmm-2.4-dev, python, python-support, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev
-Standards-Version: 3.9.1
+Standards-Version: 3.9.3
 
 Package: ceph
 Architecture: linux-any
-Depends: ${shlibs:Depends}, ${misc:Depends}, hdparm, binutils, ceph-common
+Depends: ${shlibs:Depends}, ${misc:Depends}, sdparm | hdparm, binutils, ceph-common
 Recommends: ceph-fuse, libcephfs1, librados2, librbd1, btrfs-tools
 Description: distributed storage and file system
  Ceph is a distributed storage and network file system designed to provide

[-- Attachment #3: ceph-rules.patch --]
[-- Type: text/x-patch, Size: 675 bytes --]

--- ceph/debian/rules	2012-02-26 08:54:09.293059993 +0100
+++ ceph/debian/rules	2012-01-14 16:02:08.000000000 +0100
@@ -42,20 +42,23 @@
   extraopts += --without-tcmalloc
 endif
 
-
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
 	touch $@
 
+build-arch: build
+build-indep: build
+
 build: build-stamp
 build-stamp: configure-stamp  
 	dh_testdir
 
 	./autogen.sh
 	./configure --prefix=/usr --sbindir=/sbin --localstatedir=/var \
-		--sysconfdir=/etc $(extraopts) $(confflags)
+	  --sysconfdir=/etc $(extraopts) $(confflags)
 	$(MAKE)
+
 	cp src/init-ceph debian/ceph.init
 	cp src/init-radosgw debian/radosgw.init
 	cp src/logrotate.conf debian/ceph.logrotate

[-- Attachment #4: create_run_dir.patch --]
[-- Type: text/x-patch, Size: 1440 bytes --]

Description: /run/ceph should exists for creating UNIX domain sockets
 ceph uses UNIX domain sockets for internal communication. Create their
 directory on startup as /run is on a virtual filesystem.
 .
Author: Laszlo Boszormenyi (GCS) <gcs@debian.hu>

Bug-Debian: http://bugs.debian.org/660238
Forwarded: <ceph-devel@vger.kernel.org>
Last-Update: <2012-02-26>

--- ceph-0.42.orig/src/init-ceph.in
+++ ceph-0.42/src/init-ceph.in
@@ -12,6 +12,8 @@
 # Description:       Enable Ceph distributed file system services.
 ### END INIT INFO
 
+RUN_DIR=/run/ceph
+
 # if we start up as ./mkcephfs, assume everything else is in the
 # current directory too.
 if [ `dirname $0` = "." ] && [ $PWD != "/etc/init.d" ]; then
@@ -173,7 +175,7 @@ for name in $what; do
 
     check_host || continue
 
-    get_conf pid_file "/var/run/ceph/$type.$id.pid" "pid file"
+    get_conf pid_file "$RUN_DIR/$type.$id.pid" "pid file"
     [ -n "$pid_file" ] && do_cmd "mkdir -p "`dirname $pid_file`
 
     get_conf log_dir "" "log dir"
@@ -266,6 +268,7 @@ for name in $what; do
 		do_root_cmd "modprobe btrfs ; btrfs device scan || btrfsctl -a ; egrep -q '^[^ ]+ $btrfs_path' /proc/mounts || mount -t btrfs $btrfs_opt $first_dev $btrfs_path"
 	    fi
 	    echo Starting Ceph $name on $host...
+	    mkdir -p $RUN_DIR
 	    get_conf pre_start_eval "" "pre start eval"
 	    [ -n "$pre_start_eval" ] && $pre_start_eval
 	    get_conf pre_start "" "pre start command"

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-28 11:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-26  9:54 ceph v0.42 sync Laszlo Boszormenyi
2012-02-26 16:55 ` Yehuda Sadeh Weinraub
2012-02-27  5:23 ` Sage Weil
2012-02-27  5:29   ` Sage Weil
2012-02-27  6:01   ` Laszlo Boszormenyi
2012-02-27 17:13     ` Sage Weil
2012-02-28 11:45     ` Wido den Hollander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.