[Top][All Lists]

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

[task #5724] is a node a directory or not

From: Kalle Olavi Niemitalo
Subject: [task #5724] is a node a directory or not
Date: Sun, 28 Aug 2016 16:11:32 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #1, task #5724 (project hurd):

struct dirent has unsigned char d_type, whose value may be DT_DIR or something
else.  But several file-system implementations on the Hurd always store
DT_UNKNOWN there, regardless of what is on disk, so there should be no problem
if a translator changes a file to a directory or vice versa.

* ext2fs: DT_UNKNOWN since 1999-10-03.
* fatfs: DT_UNKNOWN from the beginning.
* ftpfs: Actual type, but netfs_set_translator returns EROFS.
* isofs: DT_UNKNOWN from the beginning.
* nfs: DT_UNKNOWN since 1996-03-19.
* procfs: DT_UNKNOWN from the beginning.
* tmpfs: DT_DIR for "." and "..", DT_UNKNOWN otherwise.

On 2003-01-21, a coreutils bug was fixed where rm would assume the entry is
not a directory if d_type == DT_UNKNOWN.

It seems the implementation was already correct when this task was filed on
2006-07-17.  The IRC logs at http://richtlijn.be/~larstiq/hurd/ start from
2006-08-20 so I don't know what kind of problem was seen then.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]