Re: [PATCH v2 0/9] nilfs2: introduce functionality of creation of sysfs groups and attributes

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

 



Hi Ryusuke,

> On Mon, 2014-04-21 at 01:18 +0900, Ryusuke Konishi wrote:

> > 
> > One my question is about the "device" name.  Is it guaranteed that
> > every device has canonical single node name?  What will happen for
> > devices such as /dev/mapper/xxx?
> > 

I've checked this by means of using kpartx utility. At first I've
prepared the image with several partitions on it. Then I've created
device maps from partition table:

kpartx -va ./<image-file>

As a result, I can see such situation:

ls -lah /dev/mapper/
total 0
drwxr-xr-x  2 root root     120 Apr 29 18:38 .
drwxr-xr-x 16 root root    4.2K Apr 29 18:38 ..
crw-------  1 root root 10, 236 Apr 29 09:58 control
lrwxrwxrwx  1 root root       7 Apr 29 18:38 loop0p1 -> ../dm-0
lrwxrwxrwx  1 root root       7 Apr 29 18:38 loop0p2 -> ../dm-1
lrwxrwxrwx  1 root root       7 Apr 29 18:38 loop0p3 -> ../dm-2

Finally, namely, dm-0 (and so on) is used as name of device during
creation of /sys/fs/nilfs2/<device> group. Moreover, other file systems
are used sb->s_id for device naming too. I think that it is safe way of
device naming.

With the best regards,
Vyacheslav Dubeyko.


--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux