udf_vnops.c (9c2bf69d32f20cdd2e9b9010a74857e456a7733f) udf_vnops.c (4c5a20e3da04533aa054a826511d723a73669d45)
1/*-
2 * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 277 unchanged lines hidden (view full) ---

286 * XXX The spec says that -1 is valid for uid/gid and indicates an
287 * invalid uid/gid. How should this be represented?
288 */
289 vap->va_uid = (le32toh(fentry->uid) == -1) ? 0 : le32toh(fentry->uid);
290 vap->va_gid = (le32toh(fentry->gid) == -1) ? 0 : le32toh(fentry->gid);
291 udf_timetotimespec(&fentry->atime, &vap->va_atime);
292 udf_timetotimespec(&fentry->mtime, &vap->va_mtime);
293 vap->va_ctime = vap->va_mtime; /* XXX Stored as an Extended Attribute */
1/*-
2 * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 277 unchanged lines hidden (view full) ---

286 * XXX The spec says that -1 is valid for uid/gid and indicates an
287 * invalid uid/gid. How should this be represented?
288 */
289 vap->va_uid = (le32toh(fentry->uid) == -1) ? 0 : le32toh(fentry->uid);
290 vap->va_gid = (le32toh(fentry->gid) == -1) ? 0 : le32toh(fentry->gid);
291 udf_timetotimespec(&fentry->atime, &vap->va_atime);
292 udf_timetotimespec(&fentry->mtime, &vap->va_mtime);
293 vap->va_ctime = vap->va_mtime; /* XXX Stored as an Extended Attribute */
294 vap->va_rdev = 0; /* XXX */
294 vap->va_rdev = NODEV;
295 if (vp->v_type & VDIR) {
296 /*
297 * Directories that are recorded within their ICB will show
298 * as having 0 blocks recorded. Since tradition dictates
299 * that directories consume at least one logical block,
300 * make it appear so.
301 */
302 if (fentry->logblks_rec != 0) {

--- 928 unchanged lines hidden ---
295 if (vp->v_type & VDIR) {
296 /*
297 * Directories that are recorded within their ICB will show
298 * as having 0 blocks recorded. Since tradition dictates
299 * that directories consume at least one logical block,
300 * make it appear so.
301 */
302 if (fentry->logblks_rec != 0) {

--- 928 unchanged lines hidden ---