FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-10-2009, 08:49 AM
Martin Sivak
 
Default Prepare dev nodes for block devices too (#515437)

This patch prepares device nodes so blkid can also search directly on the block device.

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-10-2009, 08:49 AM
Martin Sivak
 
Default Prepare dev nodes for block devices too (#515437)

---
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));
--
1.6.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-10-2009, 08:59 AM
Hans de Goede
 
Default 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));


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 02:28 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org