On 2013-02-12 00:42, Sami Kerola wrote: > Karel, and others, what do you think about adding a mode > to output listing which some might say is not a mode at all? Just tested the patch and it works here, but wouldn't it be better to add a "waiting" flag to the mode display, or something like that? ("WAIT-READ" and "WAIT-WRITE"?) Side note: It seems that fs/locks.c:lock_get_status can output many other variations – e.g. mandatory locks have a third type called "ACCESS", shown when a program tries to simply read/write a locked file; in this case listing the R/W mode might be more useful than "WAITING". Mandatory locks can apparently say "RW" as well, although I haven't found a way to create a "RW" lock yet. Also, while I haven't yet seen this in practice either, the same fs/locks.c can output lock type "LEASE", which has completely different values for the 3rd field, and cannot be represented by a binary "M[andatory] = 0/1" column. -- Mantas Mikulėnas <grawity@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html