[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 16/16] trans: add mtab translator
From: |
Justus Winter |
Subject: |
Re: [PATCH 16/16] trans: add mtab translator |
Date: |
Mon, 16 Sep 2013 10:42:00 +0200 |
User-agent: |
alot/0.3.4 |
Quoting Samuel Thibault (2013-09-15 23:27:58)
> Justus Winter, le Tue 30 Jul 2013 11:59:24 +0200, a écrit :
> > + if (strncmp (device, "device:", 7) == 0)
> > + asprintf (path, "/dev/%s", &device[7]);
> > + else if (strncmp (device, "/dev/", 5) == 0)
> > + *path = strdup (device);
>
> > + else if (looks_like_block_device (device))
> > + asprintf (path, "/dev/%s", device);
>
> In which situation is that one needed?
Tbh I don't know anymore, but I must have encountered it on one of my
machines. I guess it's possible to use ext2fs ... -T device hd0s1.
Justus