Ответ: Ответ: MDEV: rename

Denys Vlasenko vda.linux at googlemail.com
Sat Mar 29 13:21:40 UTC 2008


On Saturday 29 March 2008 08:00, Mike Frysinger wrote:
> On Saturday 29 March 2008, Vladimir Dronnikov wrote:
> 
> please do not top post
> 
> > What was intentional, Mike? To move device node while leaving a
> > symlink to it? Or to not account the basename of new device node
> > location?
> 
> the mdev.txt explains the expected behavior.  if the destination ends in a /, 
> then the device node is moved there and the old name is symlinked.  if the 
> destination does not end in a /, then the device node is renamed to that

The point is, it is not "renamed to that" (in current mdev).

Rule

sda 0:0 444 >disk/scsiA

results in this being created:

/dev:
drwxr-xr-x disk
lrwxrwxrwx sda -> disk/sda
/dev/disk:
br--r--r-- sda

while it should be

/dev:
drwxr-xr-x disk
lrwxrwxrwx sda -> disk/scsiA
/dev/disk:
br--r--r-- scsiA

Right?

> and  
> the old name is symlinked.  this way both moving and symlinking are 
> supported.
> 
> > If a user orders a certain device (and symlink) to be named MYTIMER
> > why mdev doesn't respect this?
> 
> it works for me:
> input.* 0:0 0644 >input/

Yes, case with trailing slash is not buggy.
--
vda



More information about the busybox mailing list