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

Re: [PATCH 16/16] trans: add mtab translator



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


Reply to: