From patchwork Fri Feb 15 19:57:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chethan.Y" X-Patchwork-Id: 2149791 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 2A035DF24C for ; Fri, 15 Feb 2013 19:57:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751538Ab3BOT5h (ORCPT ); Fri, 15 Feb 2013 14:57:37 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:39460 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751035Ab3BOT5g (ORCPT ); Fri, 15 Feb 2013 14:57:36 -0500 Received: by mail-pa0-f53.google.com with SMTP id bg4so1845298pad.12 for ; Fri, 15 Feb 2013 11:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=15Iw+5cc/X2jfYD40HfOjQ5qhtDTfHJww1Yqirgitwg=; b=S9K8sjdJedqLxIUkqHi1u+KzcVjPIwZZkFRmv5VQ3jVXkYWo2lDQ4wZ/vSDxYqF1eP 5JNd8jyW6BwWevC489gHHSPvCVQFynF+ECM2eHxO5PH5gkDzVrLu9byFQiCyrylndeQ2 TdIXQxqFtxEsceKTsK/qcIXQ78vsNRUkgHTOCySJTOlStsQfGRNBsqOcfrnejcY86zG5 yoD2xw8gxblO55zF+jnRnJxLp9mSwAKcGn6xBp8pKDxLQtpMXPVWeVE3xjapIkVpQ3zz RhYYX+yBt5S05/QxXGsgGnXe0RGMwoKi+kZFH+XJG34AS2rKQ/L4on8laq69vwt0FONN 2m0g== X-Received: by 10.66.2.132 with SMTP id 4mr15659819pau.11.1360958255417; Fri, 15 Feb 2013 11:57:35 -0800 (PST) Received: from localhost.localdomain ([124.40.244.215]) by mx.google.com with ESMTPS id x2sm94560644paw.8.2013.02.15.11.57.30 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 15 Feb 2013 11:57:34 -0800 (PST) From: "Chethan.Y" To: linux-btrfs@vger.kernel.org Cc: skjmca51@gmail.com, ganeshkumar14@gmail.com, praneethu.u@gmail.com, hemanthkumar51@gmail.com, kirantpatil@gmail.com, "Chethan.Y" Subject: [btrfs-progs 6/7] Detect Device of type SSD or HDD Date: Sat, 16 Feb 2013 01:27:14 +0530 Message-Id: <1360958234-3461-1-git-send-email-chethan.casey@gmail.com> X-Mailer: git-send-email 1.7.11.7 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: "Chethan.Y" Signed-off-by: Chethan.Y --- 0001-Deleted-blank-patches.patch | 128 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 0001-Deleted-blank-patches.patch diff --git a/0001-Deleted-blank-patches.patch b/0001-Deleted-blank-patches.patch new file mode 100644 index 0000000..bc02ebe --- /dev/null +++ b/0001-Deleted-blank-patches.patch @@ -0,0 +1,128 @@ +From 2881178d57df390bfad6a1f67c51002f88119553 Mon Sep 17 00:00:00 2001 +From: "Chethan.Y" +Date: Sat, 16 Feb 2013 01:10:24 +0530 +Subject: [[btrfs-progs]] Deleted blank patches + + +Signed-off-by: Chethan.Y +--- + 0001-Detect-device-of-SSD-or-HDD-Patch.patch | 60 ---------------------------- + 0001-Detect-device-of-SSD-or-HDD.patch | 39 ------------------ + 2 files changed, 99 deletions(-) + delete mode 100644 0001-Detect-device-of-SSD-or-HDD-Patch.patch + delete mode 100644 0001-Detect-device-of-SSD-or-HDD.patch + +diff --git a/0001-Detect-device-of-SSD-or-HDD-Patch.patch b/0001-Detect-device-of-SSD-or-HDD-Patch.patch +deleted file mode 100644 +index 693388c..0000000 +--- a/0001-Detect-device-of-SSD-or-HDD-Patch.patch ++++ /dev/null +@@ -1,60 +0,0 @@ +-From 5e99b0ebe2b8100c8111168acd710a74724dc4d3 Mon Sep 17 00:00:00 2001 +-From: "Chethan.Y" +-Date: Sat, 16 Feb 2013 00:54:46 +0530 +-Subject: [[btrfs-progs]] Detect device of SSD or HDD Patch +- +- +-Signed-off-by: Chethan.Y +---- +- 0001-Detect-device-of-SSD-or-HDD.patch | 39 ++++++++++++++++++++++++++++++++++ +- 1 file changed, 39 insertions(+) +- create mode 100644 0001-Detect-device-of-SSD-or-HDD.patch +- +-diff --git a/0001-Detect-device-of-SSD-or-HDD.patch b/0001-Detect-device-of-SSD-or-HDD.patch +-new file mode 100644 +-index 0000000..9223f32 +---- /dev/null +-+++ b/0001-Detect-device-of-SSD-or-HDD.patch +-@@ -0,0 +1,39 @@ +-+From e42245b5254f5842e717644c663773606e63e72b Mon Sep 17 00:00:00 2001 +-+From: "Chethan.Y" +-+Date: Sat, 16 Feb 2013 00:48:34 +0530 +-+Subject: [[btrfs-progs]Detect HDD or SSD]] Detect device of SSD or HDD +-+ +-+ +-+Signed-off-by: Chethan.Y +-+--- +-+ ssd.sh | 14 +++++++------- +-+ 1 file changed, 7 insertions(+), 7 deletions(-) +-+ +-+diff --git a/ssd.sh b/ssd.sh +-+index da81b77..45afeca 100644 +-+--- a/ssd.sh +-++++ b/ssd.sh +-+@@ -8,13 +8,13 @@ TEST=$(echo $TEST_DEV | sed 's/\/dev\///' | sed 's/[0-9][0-9]*//') +-+ +-+ if [ -e $TEST_DEV ] +-+ then +-+- status=$(cat /sys/block/$TEST/queue/rotational) +-+- if [ status==1 ] # result 1 refers device of type HDD & 0 for SSD +-+- then +-+- echo "The Device is of type Hard Disk Drive(HDD) " +-+- else +-+- echo "The Device is of type Solid State drive(SSD)" +-+- fi +-++status=$(cat /sys/block/$TEST/queue/rotational) +-++if [ status==1 ] # result 1 refers device of type HDD & 0 for SSD +-++then +-++echo "The Device is of type Hard Disk Drive(HDD) " +-++else +-++echo "The Device is of type Solid State drive(SSD)" +-++fi +-+ else +-+ echo "The Device entered is not valid or does not exists" +-+ fi +-+-- +-+1.7.11.7 +-+ +--- +-1.7.11.7 +- +diff --git a/0001-Detect-device-of-SSD-or-HDD.patch b/0001-Detect-device-of-SSD-or-HDD.patch +deleted file mode 100644 +index 9223f32..0000000 +--- a/0001-Detect-device-of-SSD-or-HDD.patch ++++ /dev/null +@@ -1,39 +0,0 @@ +-From e42245b5254f5842e717644c663773606e63e72b Mon Sep 17 00:00:00 2001 +-From: "Chethan.Y" +-Date: Sat, 16 Feb 2013 00:48:34 +0530 +-Subject: [[btrfs-progs]Detect HDD or SSD]] Detect device of SSD or HDD +- +- +-Signed-off-by: Chethan.Y +---- +- ssd.sh | 14 +++++++------- +- 1 file changed, 7 insertions(+), 7 deletions(-) +- +-diff --git a/ssd.sh b/ssd.sh +-index da81b77..45afeca 100644 +---- a/ssd.sh +-+++ b/ssd.sh +-@@ -8,13 +8,13 @@ TEST=$(echo $TEST_DEV | sed 's/\/dev\///' | sed 's/[0-9][0-9]*//') +- +- if [ -e $TEST_DEV ] +- then +-- status=$(cat /sys/block/$TEST/queue/rotational) +-- if [ status==1 ] # result 1 refers device of type HDD & 0 for SSD +-- then +-- echo "The Device is of type Hard Disk Drive(HDD) " +-- else +-- echo "The Device is of type Solid State drive(SSD)" +-- fi +-+status=$(cat /sys/block/$TEST/queue/rotational) +-+if [ status==1 ] # result 1 refers device of type HDD & 0 for SSD +-+then +-+echo "The Device is of type Hard Disk Drive(HDD) " +-+else +-+echo "The Device is of type Solid State drive(SSD)" +-+fi +- else +- echo "The Device entered is not valid or does not exists" +- fi +--- +-1.7.11.7 +- +-- +1.7.11.7 +