[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH] Prepare dev nodes for block devices too (#515437)



Ack.

On 11/10/2009 10:49 AM, Martin Sivak wrote:
---
  loader2/getparts.c |    9 ++-------
  1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/loader2/getparts.c b/loader2/getparts.c
index dde72c5..d58ff93 100644
--- a/loader2/getparts.c
+++ b/loader2/getparts.c
@@ -212,13 +212,8 @@ int createPartitionNodes() {
  		    if (!strcmp(b, "1"))
  			break;
  		} else if (toknum == 3) {
-		    /* this should be the partition name */
-		    /* now we need to see if this is the block device or */
-		    /* actually a partition name                         */
-		    if (!isPartitionName(b))
-			break;
-
-		    /* we found a partition! */
+		    /* this is block device or partition name */
+		    /* lets create devnode! */
  		    pptr = (char *) malloc(strlen(b) + 7);
  		    sprintf(pptr, "/dev/%s", b);
  		    mknod(pptr, 0600 | S_IFBLK, makedev(major, minor));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]