SHMfs super magic

From: Ulrich Drepper (drepper@redhat.com)
Date: Tue Apr 11 2000 - 20:43:07 EST


The shmfs currently sets the filesystem ID to zero (function
shm_statfs in ipc/shm.c). This makes it hard/impossible to be 100%
sure the file one creates is on a shmfs filesystem. Of course we
could define the super magic for the shmfs as 0 but please let there
be a constant SHMFS_SUPER_MAGIC.

The problem arises when in the libc I'm using open() and have to make
sure the file handle I get really belongs to a file on the shmfs and
not a file on a real filesystem.

Thanks,

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:17 EST